Skip to content

Commit

Permalink
- Update bashly doc with command.help_header_override
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Feb 15, 2025
1 parent 188dbca commit 4e50fe1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/bashly/docs/command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,20 @@ command.help:
- name: images
help: Manage images
command.help_header_override:
help: Provide an alternative bash code (or function call) that will be executed at the beginning of the help message.

url: https://bashly.dev/configuration/command/#help_header_override
example: |-
name: font-explorer
help: Font manager utility
help_header_override: |
echo '┏┓ ┏┓ ┓ '
echo '┣ ┏┓┏┓╋ ┣ ┓┏┏┓┃┏┓┏┓┏┓┏┓'
echo '┻ ┗┛┛┗┗ ┗┛┛┗┣┛┗┗┛┛ ┗ ┛ '
echo ' ┛ v1.0'
command.name:
help: Specify the name of the command. This option is required.
url: https://bashly.dev/configuration/command/#name
Expand Down
16 changes: 16 additions & 0 deletions spec/approvals/cli/doc/full
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,22 @@ command.help

See https://bashly.dev/configuration/command/#help

command.help_header_override

Provide an alternative bash code (or function call) that will be executed at
the beginning of the help message.

name: font-explorer
help: Font manager utility

help_header_override: |
echo '┏┓ ┏┓ ┓ '
echo '┣ ┏┓┏┓╋ ┣ ┓┏┏┓┃┏┓┏┓┏┓┏┓'
echo '┻ ┗┛┛┗┗ ┗┛┛┗┣┛┗┗┛┛ ┗ ┛ '
echo ' ┛ v1.0'

See https://bashly.dev/configuration/command/#help_header_override

command.name

Specify the name of the command. This option is required.
Expand Down
1 change: 1 addition & 0 deletions spec/approvals/cli/doc/index
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ command.footer
command.function
command.group
command.help
command.help_header_override
command.name
command.private
command.variables
Expand Down

0 comments on commit 4e50fe1

Please sign in to comment.