class Bashly::Libraries::Help
Public Instance Methods
files()
click to toggle source
# 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_message()
click to toggle source
# 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
Private Instance Methods
help_command()
click to toggle source
# File lib/bashly/libraries/help/help.rb, line 31 def help_command asset_content('libraries/help/help_command.sh') % { name: command.name } end