Skip to content

Commit c32ef47

Browse files
committed
update bashly doc command with the new dependencies syntax
1 parent 972521e commit c32ef47

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

lib/bashly/docs/command.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,17 @@ command.dependencies:
113113
- docker
114114
- curl
115115
116-
# Hash syntax, to provide additional help message
116+
# Simple hash syntax, to provide additional help message
117117
dependencies:
118118
docker: see https://docker.com for installation instructions
119119
git: "install by running: sudo apt install git"
120+
121+
# Explicit hash syntax, to provide additional help message and
122+
# look for "one of" a given list of dependencies
123+
dependencies:
124+
http_client:
125+
command: [curl, wget]
126+
help: Run 'sudo apt install curl' or 'sudo apt install wget'
120127
121128
command.environment_variables:
122129
help: Define a list of environment variables. See `environment_variable` for reference.

spec/approvals/cli/doc/full

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,17 @@ command.dependencies
240240
- docker
241241
- curl
242242

243-
# Hash syntax, to provide additional help message
243+
# Simple hash syntax, to provide additional help message
244244
dependencies:
245245
docker: see https://docker.com for installation instructions
246246
git: "install by running: sudo apt install git"
247+
248+
# Explicit hash syntax, to provide additional help message and
249+
# look for "one of" a given list of dependencies
250+
dependencies:
251+
http_client:
252+
command: [curl, wget]
253+
help: Run 'sudo apt install curl' or 'sudo apt install wget'
247254

248255
See https://bashly.dannyb.co/configuration/command/#dependencies
249256

0 commit comments

Comments
 (0)