Sha256: 91fa9a446f7a104d402ce6993ab856fcc89812d332f08c6796ae8aeb264dc297

Contents?: true

Size: 1.42 KB

Versions: 5

Compression:

Stored size: 1.42 KB

Contents

module StackFu::Commands
  class HelpCommand < Command
    def default(parameters, options)
      stackfu = "stackfu".foreground(:green).bright
    
      puts "#{"StackFu #{StackFu::VERSION}".foreground(:green).bright}, a server deployment manager."
      puts " (c) 2009-2020 StackFu - http://stackfu.com"
      puts ""
      puts "  Usage:"
      puts "    #{stackfu} #{"command".foreground(:cyan)} [arguments...] [options...]"
      puts ""
      puts "  Examples:"
      puts "    #{stackfu} #{"generate".foreground(:cyan)} stack lamp"
      puts "    #{stackfu} #{"pub".foreground(:cyan)}"
      puts "    #{stackfu} #{"deploy".foreground(:cyan)} lamp server1"
      puts ""
      puts "  Commands:"
      puts "    #{"help".foreground(:cyan)}                         you already know about this one, dontcha?"
      puts "    #{"config".foreground(:cyan)}                       configure StackFu CLI options"
      puts "    #{"server".foreground(:cyan)}                       create, delete, update and deploy to StackFu servers"
      puts "    #{"generate".foreground(:cyan)} [stack|plugin]      creates a new stack or plugin in current_dir/name"
      puts "    #{"publish".foreground(:cyan)}                      publishes the item on the current folder to StackFu.com"
      puts "" 
      puts "  For a complete guide on using StackFu from command line:"
      puts "    #{"http://stackfu.com/guides/stackfu-cli".underline}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stackfu-0.1.5 lib/stackfu/commands/help_command.rb
stackfu-0.1.4 lib/stackfu/commands/help_command.rb
stackfu-0.1.3 lib/stackfu/commands/help_command.rb
stackfu-0.1.2.2 lib/stackfu/commands/help_command.rb
stackfu-0.1.2.1 lib/stackfu/commands/help_command.rb