Class: Mysh::PromptOption

Inherits:
CommandOption show all
Defined in:
lib/mysh/internal/actions/command_line/prompt.rb

Overview

  • mysh/internal/actions/command_line/prompt.rb – The mysh prompt command.

Constant Summary

Constants inherited from Action

Action::ACTIONS_PATH

Instance Attribute Summary

Attributes inherited from Action

#description, #name

Instance Method Summary collapse

Methods inherited from CommandOption

#get_arg

Methods inherited from Action

#action_info, #initialize, #process_quick_command, #short_name

Constructor Details

This class inherits a constructor from Mysh::Action

Instance Method Details

#post_boot(read_point) ⇒ Object

Execute the prompt command line option.



15
16
17
# File 'lib/mysh/internal/actions/command_line/prompt.rb', line 15

def post_boot(read_point)
  MNV[:prompt] = get_arg(read_point)
end

#pre_boot(read_point) ⇒ Object

Skip over the argument for pre_boot.



10
11
12
# File 'lib/mysh/internal/actions/command_line/prompt.rb', line 10

def pre_boot(read_point)
  get_arg(read_point)
end