Class: Bashly::Libraries::CompletionsYAML

Inherits:
Base
  • Object
show all
Defined in:
lib/bashly/libraries/completions/completions_yaml.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_yaml.rb', line 4

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

#post_install_messageObject



13
14
15
16
17
# 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