Skip to content

Commit 1e09ed5

Browse files
committed
- Make args array available in user filters
1 parent d890c09 commit 1e09ed5

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

examples/filters/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ commands:
5454
# These filter functions can reside in any path under the `lib` directory.
5555
# You can use a single file for all filter functions, or a separate file
5656
# for each function.
57+
# Note that the `${args[]}` array is available to you in your filter functions.
5758

5859
# Print an error string if docker is not running.
5960
# The script will automatically exit if this function prints anything.

examples/filters/src/lib/filters.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# These filter functions can reside in any path under the `lib` directory.
22
# You can use a single file for all filter functions, or a separate file
33
# for each function.
4+
# Note that the `${args[]}` array is available to you in your filter functions.
45

56
# Print an error string if docker is not running.
67
# The script will automatically exit if this function prints anything.

examples/repeatable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ inspect_args
7676
### `$ ./download -h`
7777

7878
```shell
79-
download - Sample application to demonstrate use of repeatable flags
79+
download - Sample application to demonstrate the use of repeatable flags
8080
8181
Usage:
8282
download [options]

lib/bashly/views/command/parse_requirements.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ parse_requirements() {
77
<%= render(:fixed_flags_filter).indent 2 %>
88
<%= render(:environment_variables_filter).indent 2 %>
99
<%= render(:dependencies_filter).indent 2 %>
10-
<%= render(:user_filter).indent 2 %>
1110
<%= render(:command_filter).indent 2 %>
1211
<%= render(:parse_requirements_while).indent 2 %>
1312
<%= render(:required_args_filter).indent 2 %>
1413
<%= render(:required_flags_filter).indent 2 %>
1514
<%= render(:catch_all_filter).indent 2 %>
1615
<%= render(:default_assignments).indent 2 %>
1716
<%= render(:whitelist_filter).indent 2 %>
17+
<%= render(:user_filter).indent 2 %>
1818
}
1919

2020
% commands.each do |command|

0 commit comments

Comments
 (0)