Class: Bashly::Commands::Completions
- Inherits:
-
Base
- Object
- MisterBin::Command
- Base
- Bashly::Commands::Completions
show all
- Defined in:
- lib/bashly/commands/completions.rb
Instance Method Summary
collapse
Methods inherited from Base
#config, #config_validator, #validate_config, #with_valid_config
#asset, #asset_content
Instance Method Details
#installer ⇒ Object
25
26
27
|
# File 'lib/bashly/commands/completions.rb', line 25
def installer
@installer ||= Completely::Installer.new program: 'bashly', script_path: script_path
end
|
#run ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/bashly/commands/completions.rb', line 15
def run
if args['--install']
install_completions
elsif args['--uninstall']
uninstall_completions
else
puts script
end
end
|