Browse Source

s/get_all/getAll/ use camel case no snake case

pull/14/head
Brett Langdon 11 years ago
parent
commit
9d7e1b83fa
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      lib/api/tag.js

+ 7
- 7
lib/api/tag.js View File

@ -18,12 +18,12 @@ var util = require('util');
* app_key: "app_key" * app_key: "app_key"
* }; * };
* dogapi.initialize(options); * dogapi.initialize(options);
* dogapi.tag.get_all(function(err, results){
* dogapi.tag.getAll(function(err, results){
* console.dir(results); * console.dir(results);
* }); * });
* ``` * ```
*/ */
function get_all(source, callback){
function getAll(source, callback){
if(arguments.length < 2 && typeof arguments[0] === "function"){ if(arguments.length < 2 && typeof arguments[0] === "function"){
callback = source; callback = source;
source = undefined; source = undefined;
@ -205,14 +205,14 @@ function remove(hostname, source, callback){
module.exports = { module.exports = {
_client: client, _client: client,
get_all: get_all,
getAll: getAll,
get: get, get: get,
create: create, create: create,
update: update, update: update,
remove: remove, remove: remove,
getUsage: function(){ getUsage: function(){
return [ return [
"${command} tag get_all [--source <source>]",
"${command} tag getall [--source <source>]",
"${command} tag get <host> [--source <source>] [--by-source]", "${command} tag get <host> [--source <source>] [--by-source]",
"${command} tag remove <host> [--source <source>]", "${command} tag remove <host> [--source <source>]",
"${command} tag create <host> <tags> [--source <source>]", "${command} tag create <host> <tags> [--source <source>]",
@ -223,7 +223,7 @@ module.exports = {
return [ return [
"Tag:", "Tag:",
" Subcommands:", " Subcommands:",
" get_all get all tags",
" getall get all tags",
" get <host> get all tags for a given host", " get <host> get all tags for a given host",
" remove <host> delete tags for a given host", " remove <host> delete tags for a given host",
" create <host> <tags> add the comma separates \"tag:value\"'s from <tag> to <host>", " create <host> <tags> add the comma separates \"tag:value\"'s from <tag> to <host>",
@ -238,8 +238,8 @@ module.exports = {
var source = args["source"]; var source = args["source"];
var host = args._[4]; var host = args._[4];
if(subcommand === "get_all"){
get_all(source, callback);
if(subcommand === "getall"){
getAll(source, callback);
} else if(subcommand === "get"){ } else if(subcommand === "get"){
var options = {}; var options = {};
if(source){ if(source){


Loading…
Cancel
Save