lib/ribose/cli/command.rb in ribose-cli-0.3.2 vs lib/ribose/cli/command.rb in ribose-cli-0.5.0
- old
+ new
@@ -35,15 +35,20 @@
desc "join-space", "Manage Join Space Request"
subcommand :join_space, Ribose::CLI::Commands::JoinSpace
desc "config", "Configure API Key and User Email"
- option :token, required: true, desc: "Your API Token for Ribose"
+ option :token, required: false, desc: "Your API Token for Ribose"
option :email, required: true, desc: "Your email address for Ribose"
+ option :password, required: true, desc: "Your API password for Ribose"
+ option :api_host, required: true, desc: "API host, eg: www.ribose.com"
def config
Ribose::CLI::RCFile.set(
- email: options[:email], token: options[:token],
+ token: options[:token],
+ email: options[:email],
+ password: options[:password],
+ api_host: options[:api_host],
)
end
desc "version", "The current active version"
def version