bin/onering in onering-client-0.1.2 vs bin/onering in onering-client-0.1.3
- old
+ new
@@ -4,17 +4,22 @@
require 'hashlib'
require 'rainbow'
require 'pp'
plugins = Onering::CLI.submodules.collect{|i| i.name.split('::').last.downcase }
+exclude_plugins = %w{devices}
+
global = Trollop::options do
banner <<-EOS
onering command line client utility - version #{Onering::Client::VERSION}
Usage:
onering [global] [plugin] [subcommand] [options]
+Plugins (onering <plugin> --help for usage details):
+ #{(plugins - exclude_plugins).sort.join(', ')}
+
where [global] options are:
EOS
opt :url, "The URL of the Onering server to connect to", :short => '-s', :type => :string
opt :path, "The base path to prepend to all requests (default: /api)", :type => :string
@@ -23,9 +28,10 @@
opt :format, "The output format for return values (i.e.: json, yaml, text)", :default => 'text', :short => '-t', :type => :string
opt :sslkey, "Location of the SSL client key to use for authentication", :short => '-c', :type => :string
opt :nosslverify, "Disable verification of the server SSL certificate", :type => :boolean
opt :apikey, "The API token to use for authentication", :short => '-k', :type => :string
opt :quiet, "Suppress standard output", :short => '-q'
+ opt :separator, "A string used to separate output values of delimited tabular data", :short => '-S', :default => "\t"
opt :verbosity, "Set the log level (fatal, error, warn, info, debug)", :short => '-v', :type => :string, :default => 'warn'
stop_on plugins
end