File tree Expand file tree Collapse file tree 10 files changed +53
-5
lines changed
examples/render-mandoc/docs
fixtures/workspaces/conflicts-fixed-flags Expand file tree Collapse file tree 10 files changed +53
-5
lines changed Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.2
2
2
.\"
3
- .TH "download" "1" "September 2024" "Version 0.1.0" "Sample application"
3
+ .TH "download" "1" "October 2024" "Version 0.1.0" "Sample application"
4
4
.SH NAME
5
5
\f[B] download \f[ R ] \- Sample application
6
6
.SH SYNOPSIS
Original file line number Diff line number Diff line change 1
1
% download(1) Version 0.1.0 | Sample application
2
2
% Lana Lang
3
- % September 2024
3
+ % October 2024
4
4
5
5
NAME
6
6
==================================================
Original file line number Diff line number Diff line change 1
1
= view_marker
2
2
3
3
> while [[ $# -gt 0 ]]; do
4
- > case "${1:-}" in
4
+ > key="$1"
5
+ > case "$key" in
5
6
6
7
if root_command?
7
8
= (short_flag_exist?("-v") ? "--version)" : "--version | -v)").indent(4)
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ args: none
14
14
deps:
15
15
- ${deps[git]} = /usr/bin/git
16
16
- ${deps[http_client]} = /usr/bin/curl
17
- - ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.0 /bin/ruby
17
+ - ${deps[ruby]} = /home/vagrant/.rbenv/versions/3.3.5 /bin/ruby
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ISSUE TRACKER
44
44
AUTHORS
45
45
Lana Lang.
46
46
47
- Version 0.1.0 September 2024 download(1)
47
+ Version 0.1.0 October 2024 download(1)
Original file line number Diff line number Diff line change
1
+ + bundle exec bashly generate
2
+ creating user files in src
3
+ created src/test_command.sh
4
+ created ./cli
5
+ run ./cli --help to test your bash script
6
+ + ./cli
7
+ cli
8
+
9
+ Usage:
10
+ cli [OPTIONS] COMMAND
11
+ cli [COMMAND] --help | -h
12
+ cli --version | -v
13
+
14
+ Commands:
15
+ test
16
+
17
+ + ./cli --fast --slow
18
+ conflicting options: --slow cannot be used with --fast
Original file line number Diff line number Diff line change
1
+ cli
2
+ src /* .sh
Original file line number Diff line number Diff line change
1
+ This fixture tests that flags with ` conflicts ` work properly when defined
2
+ in a "fixed flags" context (i.e., when both flags and commands are defined).
3
+ Reference issue: https://github.com/DannyBen/bashly/issues/559
Original file line number Diff line number Diff line change
1
+ name : cli
2
+ version : 0.1.0
3
+
4
+ flags :
5
+ - long : --fast
6
+ short : -f
7
+ conflicts : [--slow]
8
+ - long : --slow
9
+ short : -s
10
+ conflicts : [--fast]
11
+
12
+ commands :
13
+ - name : test
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ rm -f ./cli
4
+ rm -f ./src/* .sh
5
+
6
+ set -x
7
+
8
+ bundle exec bashly generate
9
+
10
+ ./cli
11
+ ./cli --fast --slow
You can’t perform that action at this time.
0 commit comments