Class: Bashly::Commands::Completions

Inherits:
Base
  • Object
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

Methods included from AssetHelper

#asset, #asset_content

Instance Method Details

#installerObject



25
26
27
# File 'lib/bashly/commands/completions.rb', line 25

def installer
  @installer ||= Completely::Installer.new program: 'bashly', script_path: script_path
end

#runObject



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