class Mysh::HelpSubCommand

The mysh internal help sub commands.

Public Class Methods

new(name, description, file_name) click to toggle source

Setup a help command.

Calls superclass method Mysh::Action::new
# File lib/mysh/internal/support/sub_help.rb, line 10
def initialize(name, description, file_name)
  super(name, description)
  @file_name = file_name
end

Public Instance Methods

process_command(_args) click to toggle source

Execute a help command.

# File lib/mysh/internal/support/sub_help.rb, line 16
def process_command(_args)
  path = MYSH_LIB + "mysh/help/" + @file_name
  mysh "load #{path.to_host_spec}"
end