Module: Morpheus::Cli::CliCommand::ClassMethods
- Defined in:
- lib/morpheus/cli/cli_command.rb
Instance Method Summary collapse
- #cli_command_hidden(val = true) ⇒ Object
- #cli_command_name(cmd_name) ⇒ Object
- #hidden_command ⇒ Object
Instance Method Details
#cli_command_hidden(val = true) ⇒ Object
149 150 151 |
# File 'lib/morpheus/cli/cli_command.rb', line 149 def cli_command_hidden(val=true) @hidden_command = val end |
#cli_command_name(cmd_name) ⇒ Object
145 146 147 |
# File 'lib/morpheus/cli/cli_command.rb', line 145 def cli_command_name(cmd_name) Morpheus::Cli::CliRegistry.add(self, cmd_name) end |
#hidden_command ⇒ Object
153 154 155 |
# File 'lib/morpheus/cli/cli_command.rb', line 153 def hidden_command !!@hidden_command end |