Class: Gotsha::Actions::Help
- Inherits:
-
Object
- Object
- Gotsha::Actions::Help
- Defined in:
- lib/gotsha/actions/help.rb
Constant Summary collapse
- DESCRIPTION =
"shows available commands and some tips (has optional <COMMAND> argument)"- INTERNAL_ACTIONS =
%i[fetch push test].freeze
- INTERNAL_COMMAND_WARNING =
"[WARNING] This is an internal command; if everything works as intended, you should not need to run it"
Instance Method Summary collapse
Instance Method Details
#call(action_name = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/gotsha/actions/help.rb', line 12 def call(action_name = nil) @action_name = action_name [ "help", commands, general_description, internal_command_warning, action_description, workflows_example, config_file, contact ].compact.join("\n\n\n") end |