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



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_debugObject



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_functionObject



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_pathObject



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