Class: Completely::Commands::Base

Inherits:
MisterBin::Command
  • Object
show all
Defined in:
lib/completely/commands/base.rb

Direct Known Subclasses

Generate, Init, Preview, Test

Class Method Summary collapse

Class Method Details

.environment_config_pathObject



16
17
18
# File 'lib/completely/commands/base.rb', line 16

def environment_config_path
  environment "COMPLETELY_CONFIG_PATH", "Path to a completely configuration file [default: completely.yaml]"
end

.environment_debugObject



20
21
22
# File 'lib/completely/commands/base.rb', line 20

def environment_debug
  environment "COMPLETELY_DEBUG", "It not empty, the generated script will include an additional debugging snippet that outputs the compline and current word to a text file when a completion is requested"
end

.option_functionObject



12
13
14
# File 'lib/completely/commands/base.rb', line 12

def option_function
  option "-f --function NAME", "Modify the name of the function in the generated script"
end

.param_config_pathObject



8
9
10
# File 'lib/completely/commands/base.rb', line 8

def param_config_path
  param "CONFIG_PATH", "Path to the YAML configuration file [default: completely.yaml]\nCan also be set by an environment variable"
end