Sha256: f0a574c557b396c89367f5c129e475eb0e6cc02307ae5595dd8b4ea1c9aeb44a
Contents?: true
Size: 1.3 KB
Versions: 8
Compression:
Stored size: 1.3 KB
Contents
require 'json' require 'trollop' require 'heirloom/cli/shared' require 'heirloom/cli/authorize' require 'heirloom/cli/catalog' require 'heirloom/cli/upload' require 'heirloom/cli/setup' require 'heirloom/cli/list' require 'heirloom/cli/show' require 'heirloom/cli/tag' require 'heirloom/cli/download' require 'heirloom/cli/destroy' require 'heirloom/cli/teardown' require 'heirloom/cli/formatter' module Heirloom module CLI def self.start cmd = ARGV.shift case cmd when 'authorize' CLI::Authorize.new.authorize when 'catalog' CLI::Catalog.new.all when 'destroy', 'delete' CLI::Destroy.new.destroy when 'download' CLI::Download.new.download when 'list' CLI::List.new.list when 'setup' CLI::Setup.new.setup when 'show' CLI::Show.new.show when 'teardown' CLI::Teardown.new.teardown when 'update', 'tag' CLI::Tag.new.tag when 'build', 'upload' CLI::Upload.new.upload when '-v' puts Heirloom::VERSION else puts "Unkown command: '#{cmd}'." unless cmd == '-h' puts "heirloom [authorize|catalog|destroy|download|list|setup|show|tag|teardown|upload] OPTIONS" puts "Append -h for help on specific command." end end end end
Version data entries
8 entries across 8 versions & 1 rubygems