Sha256: 35aab5e64734ab0824f7e2a3bbe7cffdb2fb7e2a251555f9886a9ab2eb06cd67
Contents?: true
Size: 1018 Bytes
Versions: 4
Compression:
Stored size: 1018 Bytes
Contents
require 'trollop' require 'json' require 'heirloom/cli/shared' require 'heirloom/cli/authorize' require 'heirloom/cli/build' require 'heirloom/cli/list' require 'heirloom/cli/show' require 'heirloom/cli/update' require 'heirloom/cli/download' require 'heirloom/cli/destroy' module Heirloom module CLI def self.start cmd = ARGV.shift case cmd when 'list' CLI::List.new.list when 'show' CLI::Show.new.show when 'build' CLI::Build.new.build when 'authorize' CLI::Authorize.new.authorize when 'update' CLI::Update.new.update when 'download' CLI::Download.new.download when 'destroy', 'delete' CLI::Destroy.new.destroy when '-v' puts Heirloom::VERSION else puts "Unkown command: '#{cmd}'." unless cmd == '-h' puts "heirloom [list|show|build|authorize|update|download|destroy] OPTIONS" puts "Append -h for help on specific command." end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.5.0rc3 | lib/heirloom/cli.rb |
heirloom-0.5.0rc2 | lib/heirloom/cli.rb |
heirloom-0.5.0rc1 | lib/heirloom/cli.rb |
heirloom-0.4.1rc1 | lib/heirloom/cli.rb |