Skip to content

Commit

Permalink
Merge branch 'master' into update/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen authored Feb 18, 2025
2 parents 4e50fe1 + a6bf478 commit b518cc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions schemas/bashly.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,15 @@
"URL to download from"
]
},
"help-header-override-property": {
"title": "help_header_override",
"description": "Bash code (or function call) that will be executed at the beginning of the help message\nhttps://bashly.dev/configuration/command/#help-header-override",
"type": "string",
"minLength": 1,
"examples": [
"generate_ascii_art_logo"
]
},
"args-property": {
"title": "args",
"description": "Arguments of the current script or sub-command\nhttps://bashly.dev/configuration/command/#args",
Expand Down Expand Up @@ -847,6 +856,9 @@
"help": {
"$ref": "#/definitions/help-property"
},
"help_header_override": {
"$ref": "#/definitions/help-header-override-property"
},
"args": {
"$ref": "#/definitions/args-property"
},
Expand Down Expand Up @@ -924,6 +936,9 @@
"help": {
"$ref": "#/definitions/help-property"
},
"help_header_override": {
"$ref": "#/definitions/help-header-override-property"
},
"args": {
"$ref": "#/definitions/args-property"
},
Expand Down
13 changes: 13 additions & 0 deletions support/schema/bashly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,15 @@ definitions:
minLength: 1
examples:
- URL to download from
help-header-override-property:
title: help_header_override
description: |-
Bash code (or function call) that will be executed at the beginning of the help message
https://bashly.dev/configuration/command/#help-header-override
type: string
minLength: 1
examples:
- generate_ascii_art_logo
args-property:
title: args
description: |-
Expand Down Expand Up @@ -739,6 +748,8 @@ definitions:
$ref: '#/definitions/sub-command-alias-property'
help:
$ref: '#/definitions/help-property'
help_header_override:
$ref: '#/definitions/help-header-override-property'
args:
$ref: '#/definitions/args-property'
flags:
Expand Down Expand Up @@ -787,6 +798,8 @@ properties:
$ref: '#/definitions/name-property'
help:
$ref: '#/definitions/help-property'
help_header_override:
$ref: '#/definitions/help-header-override-property'
args:
$ref: '#/definitions/args-property'
flags:
Expand Down

0 comments on commit b518cc0

Please sign in to comment.