class Bashly::Libraries::CompletionsYAML
Public Instance Methods
files()
click to toggle source
# File lib/bashly/libraries/completions/completions_yaml.rb, line 4 def files [ { path: target_path, content: command.completion_data.to_yaml, }, ] end
post_install_message()
click to toggle source
# File lib/bashly/libraries/completions/completions_yaml.rb, line 13 def post_install_message <<~MESSAGE This file can be converted to a completions script using the g`completely` gem. MESSAGE end
Private Instance Methods
target_path()
click to toggle source
# File lib/bashly/libraries/completions/completions_yaml.rb, line 21 def target_path @target_path ||= args[0] || "#{Settings.target_dir}/completions.yml" end