Skip to content

Commit

Permalink
regenerate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Mar 27, 2024
1 parent 8d72e6e commit 0696ca4
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/dependencies-alt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ args: none
deps:
- ${deps[git]} = /usr/bin/git
- ${deps[http_client]} = /usr/bin/curl
- ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.1.4/bin/ruby
- ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.0/bin/ruby


````
Expand Down
2 changes: 1 addition & 1 deletion examples/render-mandoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ISSUE TRACKER
AUTHORS
Lana Lang.

Version 0.1.0 December 2023 download(1)
Version 0.1.0 March 2024 download(1)


````
Expand Down
6 changes: 3 additions & 3 deletions examples/repeatable-arg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ files:
upcase: CONTENT OF FILE1

args:
- ${args[file]} = "file1"
- ${args[file]} = file1


````
Expand All @@ -147,7 +147,7 @@ files:
upcase: CONTENT OF FILE2

args:
- ${args[file]} = "file1" "file2"
- ${args[file]} = file1 file2


````
Expand All @@ -165,7 +165,7 @@ files:
upcase: CONTENT OF FILE2

args:
- ${args[file]} = "file1" "file2"
- ${args[file]} = file1 file2


````
Expand Down
6 changes: 3 additions & 3 deletions examples/repeatable-flag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ two three
Verbosity level: 3

args:
- ${args[--data]} = "one" "two three"
- ${args[--data]} = one two\ three
- ${args[--path]} = file\ one file-two
- ${args[--verbose]} = 3

Expand All @@ -162,8 +162,8 @@ one
Verbosity level: 1

args:
- ${args[--data]} = "one"
- ${args[--path]} = "/bin" "/usr/lib"
- ${args[--data]} = one
- ${args[--path]} = /bin /usr/lib


````
Expand Down
8 changes: 8 additions & 0 deletions examples/stdin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ inspect_args
# path and '-' argument.
cat "${args[path]}"

# To read the file yourself, use something like this
#
# if [[ "${args[path]}" == "-" ]]; then
# file=$(</dev/stdin)
# else
# file=$(<"${args[path]}")
# fi

````


Expand Down
8 changes: 8 additions & 0 deletions examples/stdin/src/root_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ inspect_args
# Since cat knows how to handle '-' as a value, it will work with both a file
# path and '-' argument.
cat "${args[path]}"

# To read the file yourself, use something like this
#
# if [[ "${args[path]}" == "-" ]]; then
# file=$(</dev/stdin)
# else
# file=$(<"${args[path]}")
# fi

0 comments on commit 0696ca4

Please sign in to comment.