Class: Bashly::Libraries::CompletionsScript

Inherits:
Base
  • Object
show all
Defined in:
lib/bashly/libraries/completions/completions_script.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Bashly::Libraries::Base

Instance Method Details

#filesObject



4
5
6
7
8
9
10
11
# File 'lib/bashly/libraries/completions/completions_script.rb', line 4

def files
  [
    {
      path:    target_path,
      content: command.completion_script,
    },
  ]
end

#post_install_messageObject



13
14
15
16
17
18
19
# File 'lib/bashly/libraries/completions/completions_script.rb', line 13

def post_install_message
  <<~MESSAGE
    In order to enable completions, run:

      m`$ source #{target_path}`
  MESSAGE
end