Skip to content

Commit 0696ca4

Browse files
committed
regenerate examples
1 parent 8d72e6e commit 0696ca4

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

examples/dependencies-alt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ args: none
6060
deps:
6161
- ${deps[git]} = /usr/bin/git
6262
- ${deps[http_client]} = /usr/bin/curl
63-
- ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.1.4/bin/ruby
63+
- ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.0/bin/ruby
6464

6565

6666
````

examples/render-mandoc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ISSUE TRACKER
102102
AUTHORS
103103
Lana Lang.
104104

105-
Version 0.1.0 December 2023 download(1)
105+
Version 0.1.0 March 2024 download(1)
106106

107107

108108
````

examples/repeatable-arg/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ files:
129129
upcase: CONTENT OF FILE1
130130

131131
args:
132-
- ${args[file]} = "file1"
132+
- ${args[file]} = file1
133133

134134

135135
````
@@ -147,7 +147,7 @@ files:
147147
upcase: CONTENT OF FILE2
148148

149149
args:
150-
- ${args[file]} = "file1" "file2"
150+
- ${args[file]} = file1 file2
151151

152152

153153
````
@@ -165,7 +165,7 @@ files:
165165
upcase: CONTENT OF FILE2
166166

167167
args:
168-
- ${args[file]} = "file1" "file2"
168+
- ${args[file]} = file1 file2
169169

170170

171171
````

examples/repeatable-flag/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ two three
146146
Verbosity level: 3
147147

148148
args:
149-
- ${args[--data]} = "one" "two three"
149+
- ${args[--data]} = one two\ three
150150
- ${args[--path]} = file\ one file-two
151151
- ${args[--verbose]} = 3
152152

@@ -162,8 +162,8 @@ one
162162
Verbosity level: 1
163163

164164
args:
165-
- ${args[--data]} = "one"
166-
- ${args[--path]} = "/bin" "/usr/lib"
165+
- ${args[--data]} = one
166+
- ${args[--path]} = /bin /usr/lib
167167

168168

169169
````

examples/stdin/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ inspect_args
5151
# path and '-' argument.
5252
cat "${args[path]}"
5353

54+
# To read the file yourself, use something like this
55+
#
56+
# if [[ "${args[path]}" == "-" ]]; then
57+
# file=$(</dev/stdin)
58+
# else
59+
# file=$(<"${args[path]}")
60+
# fi
61+
5462
````
5563

5664

examples/stdin/src/root_command.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ inspect_args
33
# Since cat knows how to handle '-' as a value, it will work with both a file
44
# path and '-' argument.
55
cat "${args[path]}"
6+
7+
# To read the file yourself, use something like this
8+
#
9+
# if [[ "${args[path]}" == "-" ]]; then
10+
# file=$(</dev/stdin)
11+
# else
12+
# file=$(<"${args[path]}")
13+
# fi

0 commit comments

Comments
 (0)