Class: WavefrontCommandSource
Overview
Define the source command.
Instance Method Summary
collapse
#acl_commands, #commands, #common_options, #docopt, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word
Instance Method Details
#_commands ⇒ Object
10
11
12
13
14
15
16
17
18
|
# File 'lib/wavefront-cli/commands/source.rb', line 10
def _commands
["list #{CMN} [-l] [-O fields] [-o cursor] [-L limit] [-a]",
"describe #{CMN} <id>",
"description set #{CMN} <id> <description>",
"description clear #{CMN} <id>",
"clear #{CMN} <id>",
"search #{CMN} [-o offset] [-L limit] [-l] <condition>...",
tag_commands]
end
|
#_options ⇒ Object
20
21
22
23
24
25
26
27
28
|
# File 'lib/wavefront-cli/commands/source.rb', line 20
def _options
[common_options,
'-l, --long list sources in detail',
'-o, --cursor=SOURCE start list given source',
'-O, --fields=F1,F2,... only show given fields',
'-L, --limit=COUNT number of sources to list',
'-a, --all list all sources, including cluster',
'-f, --format=STRING output format']
end
|
#description ⇒ Object
6
7
8
|
# File 'lib/wavefront-cli/commands/source.rb', line 6
def description
'view and manage source tags and descriptions'
end
|