From 4b4183622cec7622a05341e787ad577a012355d9 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 21 Mar 2015 18:23:34 -0400 Subject: [PATCH] s/${command}/ dogapi/ --- bin/dogapi | 12 ++++++------ lib/api/event.js | 6 +++--- lib/api/host.js | 4 ++-- lib/api/infrastructure.js | 2 +- lib/api/metric.js | 4 ++-- lib/api/monitor.js | 18 +++++++++--------- lib/api/serviceCheck.js | 2 +- lib/api/tag.js | 10 +++++----- lib/api/user.js | 2 +- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/bin/dogapi b/bin/dogapi index 3a8bdb8..064b42e 100755 --- a/bin/dogapi +++ b/bin/dogapi @@ -11,11 +11,11 @@ dogapi.initialize(config); var usage = [ "Usage:", - "${command} --help", - "${command} --help", - "${command} --version", - "${command} now", - "${command} then " + "dogapi --help", + "dogapi --help", + "dogapi --version", + "dogapi now", + "dogapi then " ]; var help = []; for(var key in dogapi){ @@ -34,7 +34,7 @@ for(var key in dogapi){ } usage = usage.concat(help); -usage = usage.join("\r\n").replace(/\$\{command\}/g, " dogapi"); +usage = usage.join("\r\n"); var args = minimist(process.argv); var command = args._[2]; diff --git a/lib/api/event.js b/lib/api/event.js index 8641aca..4c1be38 100644 --- a/lib/api/event.js +++ b/lib/api/event.js @@ -142,9 +142,9 @@ module.exports = { query: query, getUsage: function(){ return [ - "${command} event get ", - "${command} event query [--priority ] [--sources ] [--tags ]", - "${command} event create <text> [--time <timestamp>] [--priority <priority>] [--host <host>] [--tags <tags>] [--type <type>] [--agg-key <agg-key>] [--source <source>]" + " dogapi event get <event-id>", + " dogapi event query <from> <to> [--priority <priority>] [--sources <sources>] [--tags <tags>]", + " dogapi event create <title> <text> [--time <timestamp>] [--priority <priority>] [--host <host>] [--tags <tags>] [--type <type>] [--agg-key <agg-key>] [--source <source>]" ]; }, getHelp: function(){ diff --git a/lib/api/host.js b/lib/api/host.js index 90772bb..e2e2bb2 100644 --- a/lib/api/host.js +++ b/lib/api/host.js @@ -75,8 +75,8 @@ module.exports = { unmute: unmute, getUsage: function(){ return [ - "${command} host mute <host> [--end <end>] [--override]", - "${command} host unmute <host>" + " dogapi host mute <host> [--end <end>] [--override]", + " dogapi host unmute <host>" ]; }, getHelp: function(){ diff --git a/lib/api/infrastructure.js b/lib/api/infrastructure.js index ee858c4..b96f245 100644 --- a/lib/api/infrastructure.js +++ b/lib/api/infrastructure.js @@ -35,7 +35,7 @@ module.exports = { search: search, getUsage: function(){ return [ - "${command} infrastructure search <query>" + " dogapi infrastructure search <query>" ] }, getHelp: function(){ diff --git a/lib/api/metric.js b/lib/api/metric.js index c47e30d..5a9ba6e 100644 --- a/lib/api/metric.js +++ b/lib/api/metric.js @@ -145,8 +145,8 @@ module.exports = { query: query, getUsage: function(){ return [ - "${command} metric send <metric> <point> [--tags <tags>] [--host <host>] [--type <type>]", - "${command} metric query <from> <to> <query>" + " dogapi metric send <metric> <point> [--tags <tags>] [--host <host>] [--type <type>]", + " dogapi metric query <from> <to> <query>" ] }, getHelp: function(){ diff --git a/lib/api/monitor.js b/lib/api/monitor.js index 636a400..ac03d5b 100644 --- a/lib/api/monitor.js +++ b/lib/api/monitor.js @@ -328,15 +328,15 @@ module.exports = { unmuteAll: unmuteAll, getUsage: function(){ return [ - "${command} monitor create <type> <query> [--name <name>] [--message <message>]", - "${command} monitor get <monitor-id> [--states <states>]", - "${command} monitor getall [--states <states>] [--tags <tags>]", - "${command} monitor mute <monitor-id> [--scope <scope>] [--end <end>]", - "${command} monitor muteall", - "${command} monitor remove <monitor-id>", - "${command} monitor unmute <monitor-id> [--scope <scope>]", - "${command} monitor unmuteall", - "${command} monitor update <monitor-id> <query> [--name <name>] [--message <message>]" + " dogapi monitor create <type> <query> [--name <name>] [--message <message>]", + " dogapi monitor get <monitor-id> [--states <states>]", + " dogapi monitor getall [--states <states>] [--tags <tags>]", + " dogapi monitor mute <monitor-id> [--scope <scope>] [--end <end>]", + " dogapi monitor muteall", + " dogapi monitor remove <monitor-id>", + " dogapi monitor unmute <monitor-id> [--scope <scope>]", + " dogapi monitor unmuteall", + " dogapi monitor update <monitor-id> <query> [--name <name>] [--message <message>]" ]; }, getHelp: function(){ diff --git a/lib/api/serviceCheck.js b/lib/api/serviceCheck.js index 3118c03..6a6e7fe 100644 --- a/lib/api/serviceCheck.js +++ b/lib/api/serviceCheck.js @@ -54,7 +54,7 @@ module.exports = { check: check, getUsage: function(){ return [ - "${command} servicecheck check <check> <host> <status> [--time <timestamp>] [--message <message>] [--tags <tags>]" + " dogapi servicecheck check <check> <host> <status> [--time <timestamp>] [--message <message>] [--tags <tags>]" ]; }, getHelp: function(){ diff --git a/lib/api/tag.js b/lib/api/tag.js index db49461..3094a36 100644 --- a/lib/api/tag.js +++ b/lib/api/tag.js @@ -212,11 +212,11 @@ module.exports = { remove: remove, getUsage: function(){ return [ - "${command} tag getall [--source <source>]", - "${command} tag get <host> [--source <source>] [--by-source]", - "${command} tag remove <host> [--source <source>]", - "${command} tag create <host> <tags> [--source <source>]", - "${command} tag update <host> <tags> [--source <source>]" + " dogapi tag getall [--source <source>]", + " dogapi tag get <host> [--source <source>] [--by-source]", + " dogapi tag remove <host> [--source <source>]", + " dogapi tag create <host> <tags> [--source <source>]", + " dogapi tag update <host> <tags> [--source <source>]" ]; }, getHelp: function(){ diff --git a/lib/api/user.js b/lib/api/user.js index 76b6815..e0f21f3 100644 --- a/lib/api/user.js +++ b/lib/api/user.js @@ -32,7 +32,7 @@ module.exports = { invite: invite, getUsage: function(){ return [ - "${command} user invite <address>..." + " dogapi user invite <address>..." ]; }, getHelp: function(){