SCOPE | = | Pry::CommandSet.new do create_command 'scope' do group 'Guard' | ||
CHANGE | = | Pry::CommandSet.new do create_command 'change' do group 'Guard' | ||
NOTIFICATION | = | Pry::CommandSet.new do create_command 'notification' do group 'Guard' | ||
SHOW | = | Pry::CommandSet.new do create_command 'show' do group 'Guard' | ||
RELOAD | = | Pry::CommandSet.new do create_command 'reload' do group 'Guard' | ||
ALL | = | Pry::CommandSet.new do create_command 'all' do group 'Guard' | ||
PAUSE | = | Pry::CommandSet.new do create_command 'pause' do group 'Guard' | ||
GUARD_RC | = | '~/.guardrc' | The default Ruby script to configure Guard Pry if the option `:guard_rc` is not defined. | |
HISTORY_FILE | = | '~/.guard_history' | The default Guard Pry history file if the option `:history_file` is not defined. | |
SHORTCUTS | = | { :help => 'h', :all => 'a', :reload => 'r', :change => 'c', :show => 's', :scope => 'o', :notification => 'n', :pause => 'p', :exit => 'e', :quit => 'q' | List of shortcuts for each interactor command |
thread | [RW] |
Converts and validates a plain text scope to a valid plugin or group scope.
@param [Array<String>] entries the text scope @return [Hash, Array<String>] the plugin or group scope, the unknown entries
Initialize the interactor. This configures Pry and creates some custom commands and aliases for Guard.
Creates command aliases for the commands `help`, `reload`, `change`, `scope`, `notification`, `pause`, `exit` and `quit`, which will be the first letter of the command.
Create a shorthand command to run the `:run_all` action on a specific Guard group. For example, when you have a group `frontend`, then a command `frontend` is created that runs `all frontend`.
Create a shorthand command to run the `:run_all` action on a specific Guard plugin. For example, when guard-rspec is available, then a command `rspec` is created that runs `all rspec`.
Creates a command that triggers the `:run_all` action when the command is empty (just pressing enter on the beginning of a line).