Class: Ukiryu::CliCommands::SystemCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/ukiryu/cli_commands/system_command.rb

Overview

Command to list system information

Instance Attribute Summary

Attributes inherited from BaseCommand

#config, #options

Instance Method Summary collapse

Methods inherited from BaseCommand

#apply_cli_options_to_config, #default_register_path, #initialize, #setup_register, #stringify_keys

Constructor Details

This class inherits a constructor from Ukiryu::CliCommands::BaseCommand

Instance Method Details

#run(subcommand = nil) ⇒ Object

Run the system command

Parameters:

  • subcommand (String, nil) (defaults to: nil)

    the subcommand (shells, etc.)



10
11
12
13
14
15
16
17
# File 'lib/ukiryu/cli_commands/system_command.rb', line 10

def run(subcommand = nil)
  case subcommand
  when 'shells', nil
    list_shells
  else
    error!("Unknown subcommand: #{subcommand}. Valid subcommands: shells")
  end
end