class WavefrontCommandSource

Define the source command.

Public Instance Methods

_commands() click to toggle source
# File lib/wavefront-cli/commands/source.rb, line 12
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} [-al] [-o cursor] [-L limit] [-O fields] <condition>...",
   tag_commands]
end
_options() click to toggle source
# File lib/wavefront-cli/commands/source.rb, line 22
def _options
  [common_options,
   "-l, --long               list #{things} in detail",
   "-o, --cursor=SOURCE      start list given #{thing}",
   '-O, --fields=F1,F2,...   only show given fields',
   "-L, --limit=COUNT        number of #{things} to list",
   "-a, --all                list all #{things}, including cluster"]
end
description() click to toggle source
# File lib/wavefront-cli/commands/source.rb, line 8
def description
  'view and manage source tags and descriptions'
end