lib/magellan/cli/command.rb in magellan-cli-0.2.11 vs lib/magellan/cli/command.rb in magellan-cli-0.2.12

- old
+ new

@@ -4,11 +4,10 @@ require 'active_support/core_ext/string/inflections' module Magellan module Cli class Command < Base - { "organization" => "Organization", "team" => "Team", "project" => "Project", "stage" => "Stage", @@ -33,9 +32,14 @@ print "password: " password = STDIN.noecho(&:gets).chomp puts "" Magellan::Cli::Http.new.login!(email, password) + end + + desc "version", "show version" + def version + $stdout.puts Magellan::Cli::VERSION end end end end