Skip to content

Commit 564839b

Browse files
authored
Merge pull request #207 from DannyBen/add/help-and-docs-footer
Add a help footer when running bashly without arguments
2 parents bb1c285 + 1b851ba commit 564839b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/bashly/cli.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module Bashly
66
class CLI
77
def self.runner
88
runner = MisterBin::Runner.new version: Bashly::VERSION,
9-
header: "Bashly - Bash CLI Generator"
9+
header: "Bashly - Bash CLI Generator",
10+
footer: "Help: !txtpur!bashly COMMAND --help!txtrst!\nDocs: !undblu!https://bashly.dannyb.co"
1011

1112
runner.route 'init', to: Commands::Init
1213
runner.route 'preview', to: Commands::Preview

spec/approvals/cli/commands

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ Commands:
66
validate Scan the configuration file for errors
77
generate Generate the bash script and required files
88
add Add extra features and customization to your script
9+
10+
Help: bashly COMMAND --help
11+
Docs: https://bashly.dannyb.co

0 commit comments

Comments
 (0)