Sha256: 35f63648c39044279f20aae3502e1548ff765c0713feb6392110ed49ce1f8361
Contents?: true
Size: 1.27 KB
Versions: 9
Compression:
Stored size: 1.27 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' 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
9 entries across 9 versions & 1 rubygems