Class: StackFu::Commands::HelpCommand
- Defined in:
- lib/stackfu/commands/help_command.rb
Constant Summary
Constants included from Rendering
Constants included from OperatingSystems
OperatingSystems::FriendlyNames, OperatingSystems::OperatingSystems
Instance Attribute Summary
Attributes inherited from Command
#errors, #options, #parameters, #subcommand
Instance Method Summary collapse
Methods inherited from Command
#command, command_for, create, inherited, #initialize, #params?, #run, #valid?
Methods included from Rendering
#done, #error, #fill_values_from_options, #menu_for, #render_target, #spinner, #table, #warning
Methods included from OperatingSystems
Constructor Details
This class inherits a constructor from StackFu::Commands::Command
Instance Method Details
#default(parameters, options) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/stackfu/commands/help_command.rb', line 3 def default(parameters, ) stackfu = "stackfu".foreground(:green).bright puts "#{"StackFu #{StackFu::VERSION}".foreground(:green).bright} - social server provisioning." puts " (c) 2010-2020 StackFu - http://stackfu.com" puts "" puts " Usage:" puts " #{stackfu} #{"command".foreground(:cyan)} [arguments...] [options...]" puts "" puts " Examples:" puts " #{stackfu} #{"generate".foreground(:cyan)} 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 " #{"list".foreground(:cyan)} [servers|script] lists all the scripts and/or server under your account" puts " #{"generate".foreground(:cyan)} creates a new script in current_dir/name" puts " #{"dump".foreground(:cyan)} dumps an existing script 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://docs.stackfu.com/usage/".underline}" end |