diff --git a/lib/api/tag.js b/lib/api/tag.js index 5d0e634..bede22e 100644 --- a/lib/api/tag.js +++ b/lib/api/tag.js @@ -184,12 +184,12 @@ function update(hostname, tags, source, callback){ * app_key: "app_key" * }; * dogapi.initialize(options); - * dogapi.tag.delete("host.name", function(err, results){ + * dogapi.tag.remove("host.name", function(err, results){ * console.dir(results); * }); * ``` */ -function delete_tags(hostname, source, callback){ +function remove(hostname, source, callback){ if(arguments.length < 3 && typeof arguments[1] === "function"){ callback = source; source = undefined; @@ -209,12 +209,12 @@ module.exports = { get: get, create: create, update: update, - "delete": delete_tags, + remove: remove, getUsage: function(){ return [ "${command} tag get_all [--source ]", "${command} tag get [--source ] [--by-source]", - "${command} tag delete [--source ]", + "${command} tag remove [--source ]", "${command} tag create [--source ]", "${command} tag update [--source ]" ]; @@ -224,7 +224,7 @@ module.exports = { "Tag Commands:", " get_all get all tags", " get get all tags for a given host", - " delete delete tags for a given host", + " remove delete tags for a given host", " create add the comma separates \"tag:value\"'s from to ", " update update the comma separates \"tag:value\"'s from to ", "", @@ -255,7 +255,7 @@ module.exports = { var tags = args._[5].split(","); update(host, tags, source, callback); } else if(subcommand === "delete"){ - delete_tags(host, source, callback); + remove(host, source, callback); } } }