Skip to content

Commit e72cfa2

Browse files
committed
update terminal docs
1 parent 6538886 commit e72cfa2

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

examples/variables/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Variables Example
22

3-
Demonstrates how to define varaibles from the bashly.yml configuration.
3+
Demonstrates how to define variables from the bashly.yml configuration.
44

55
This example was generated with:
66

lib/bashly/docs/command.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,28 @@ command.private:
309309
help: Send bash completions
310310
private: true
311311
312+
command.variables:
313+
help: Define a list of global bash variables.
314+
url: https://bashly.dannyb.co/configuration/command/#variables
315+
example: |-
316+
variables:
317+
# Simple value
318+
- name: output_folder
319+
value: output
320+
321+
# Array
322+
- name: download_sources
323+
value:
324+
- youtube
325+
- instagram
326+
327+
# Associative array
328+
- name: zip_options
329+
value:
330+
pattern: "*.json"
331+
compression_level: fast
332+
333+
312334
command.version:
313335
help: Specify the version to show when running with `--version`.
314336
url: https://bashly.dannyb.co/configuration/command/#version

0 commit comments

Comments
 (0)