Class: Completely::Commands::Base
- Inherits:
-
MisterBin::Command
- Object
- MisterBin::Command
- Completely::Commands::Base
show all
- Defined in:
- lib/completely/commands/base.rb
Class Method Summary
collapse
Class Method Details
.environment_config_path ⇒ Object
15
16
17
|
# File 'lib/completely/commands/base.rb', line 15
def environment_config_path
environment 'COMPLETELY_CONFIG_PATH', 'Path to a completely configuration file [default: completely.yaml]'
end
|
.environment_debug ⇒ Object
19
20
21
|
# File 'lib/completely/commands/base.rb', line 19
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_function ⇒ Object
11
12
13
|
# File 'lib/completely/commands/base.rb', line 11
def option_function
option '-f --function NAME', 'Modify the name of the function in the generated script'
end
|
.param_config_path ⇒ Object
7
8
9
|
# File 'lib/completely/commands/base.rb', line 7
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
|