Class: Bashly::Libraries::Help

Inherits:
Base
  • Object
show all
Includes:
AssetHelper
Defined in:
lib/bashly/libraries/help/help.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods included from AssetHelper

#asset, #asset_content

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#filesObject



6
7
8
9
10
11
12
13
# File 'lib/bashly/libraries/help/help.rb', line 6

def files
  [
    {
      path:    "#{Settings.source_dir}/help_command.#{Settings.partials_extension}",
      content: help_command,
    },
  ]
end

#post_install_messageObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/bashly/libraries/help/help.rb', line 15

def post_install_message
  <<~MESSAGE
    Add this as a command to your bashly.yml:

      g`commands`:
        g`- name`: m`help`
        g`  help`: m`Show help about a command`
        g`  args`:
          g`- name`: m`command`
          g`  help`: m`Help subject`

  MESSAGE
end