Sha256: 32a3ea24160132d0237452f5a7328a517837c5cd6d1c6dc4971d31b03fca9a9f
Contents?: true
Size: 945 Bytes
Versions: 3
Compression:
Stored size: 945 Bytes
Contents
module FaaStRuby module Command class Help < BaseCommand def initialize(args) @args = args end def run puts "FaaStRuby CLI - Manage workspaces and functions hosted at faastruby.io" puts puts 'help, -h, --help # Displays this help' puts '-v # Print version and exit' puts workspaces = ["Workspaces:"] functions = ["Functions:"] FaaStRuby::Command::COMMANDS.each do |command, klass| next if command == 'upgrade' next if klass.to_s.match(/.+Command::Help$/) next if klass.to_s.match(/.+Command::Version$/) section = functions if klass.to_s.match(/.+::Function::.+/) section = workspaces if klass.to_s.match(/.+::Workspace::.+/) section << " #{klass.help}" end puts workspaces puts puts functions puts end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
faastruby-0.2.2 | lib/faastruby/cli/commands/help.rb |
faastruby-0.2.1 | lib/faastruby/cli/commands/help.rb |
faastruby-0.2.0 | lib/faastruby/cli/commands/help.rb |