class Bashly::Libraries::CompletionsScript
Public Instance Methods
files()
click to toggle source
# File lib/bashly/libraries/completions/completions_script.rb, line 4 def files [ { path: target_path, content: command.completion_script, }, ] end
post_install_message()
click to toggle source
# 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
Private Instance Methods
target_path()
click to toggle source
# File lib/bashly/libraries/completions/completions_script.rb, line 23 def target_path @target_path ||= args[0] || "#{Settings.target_dir}/completions.bash" end