Skip to content

Commit b7b8dc1

Browse files
committed
- Breaking change: Rename Command.short to Command.alias and add support for multiple values
1 parent 38afb94 commit b7b8dc1

File tree

53 files changed

+130
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+130
-116
lines changed

examples/catch-all-advanced/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ version: 0.1.0
2222

2323
commands:
2424
- name: download
25-
short: d
25+
alias: d
2626
help: Download a file
2727

2828
# Configure catch_all for the `download` sub-command using the extended
@@ -48,7 +48,7 @@ commands:
4848
- cli download example.com ./output -f
4949

5050
- name: upload
51-
short: u
51+
alias: u
5252
help: Upload a file
5353

5454
# Configure catch_all for the `upload` sub-command using the extended
@@ -87,7 +87,7 @@ Commands:
8787
```shell
8888
cli download - Download a file
8989
90-
Shortcut: d
90+
Alias: d
9191
9292
Usage:
9393
cli download SOURCE [TARGET] [options] [AWS PARAMS...]
@@ -167,7 +167,7 @@ other_args:
167167
```shell
168168
cli upload - Upload a file
169169
170-
Shortcut: u
170+
Alias: u
171171
172172
Usage:
173173
cli upload FILES...

examples/catch-all-advanced/src/bashly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.0
44

55
commands:
66
- name: download
7-
short: d
7+
alias: d
88
help: Download a file
99

1010
# Configure catch_all for the `download` sub-command using the extended
@@ -30,7 +30,7 @@ commands:
3030
- cli download example.com ./output -f
3131

3232
- name: upload
33-
short: u
33+
alias: u
3434
help: Upload a file
3535

3636
# Configure catch_all for the `upload` sub-command using the extended

examples/command-default/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ version: 0.1.0
2222

2323
commands:
2424
- name: upload
25-
short: u
25+
alias: u
2626
help: Upload a file
2727

2828
# By setting the `upload` command as the default command, it will be executed
@@ -36,7 +36,7 @@ commands:
3636
help: File to upload
3737

3838
- name: download
39-
short: d
39+
alias: d
4040
help: Download a file
4141

4242
args:

examples/command-default/src/bashly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.0
44

55
commands:
66
- name: upload
7-
short: u
7+
alias: u
88
help: Upload a file
99

1010
# By setting the `upload` command as the default command, it will be executed
@@ -18,7 +18,7 @@ commands:
1818
help: File to upload
1919

2020
- name: download
21-
short: d
21+
alias: d
2222
help: Download a file
2323

2424
args:

examples/command-filenames/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ version: 0.1.0
2525

2626
commands:
2727
- name: dir
28-
short: d
28+
alias: d
2929
help: Directory commands
3030

3131
commands:
@@ -42,7 +42,7 @@ commands:
4242
filename: dir_commands/remove.sh
4343

4444
- name: file
45-
short: f
45+
alias: f
4646
help: File commands
4747

4848
commands:

examples/command-filenames/src/bashly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.0
44

55
commands:
66
- name: dir
7-
short: d
7+
alias: d
88
help: Directory commands
99

1010
commands:
@@ -21,7 +21,7 @@ commands:
2121
filename: dir_commands/remove.sh
2222

2323
- name: file
24-
short: f
24+
alias: f
2525
help: File commands
2626

2727
commands:

examples/command-private/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ version: 0.1.0
2323

2424
commands:
2525
- name: connect
26-
short: c
26+
alias: c
2727
help: Connect to the metaverse
2828

2929
args:

examples/command-private/src/bashly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.0
44

55
commands:
66
- name: connect
7-
short: c
7+
alias: c
88
help: Connect to the metaverse
99

1010
args:

examples/commands-nested/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ version: 0.1.0
2121

2222
commands:
2323
- name: dir
24-
short: d
24+
alias: d
2525
help: Directory commands
2626

2727
# The `commands` array can be nested inside any other command
@@ -46,7 +46,7 @@ commands:
4646
help: Remove even if when not empty
4747

4848
- name: file
49-
short: f
49+
alias: f
5050
help: File commands
5151

5252
# The nested commands for `cli file` - will generate `cli file show` and
@@ -116,7 +116,7 @@ Options:
116116
```shell
117117
cli dir - Directory commands
118118
119-
Shortcut: d
119+
Alias: d
120120
121121
Usage:
122122
cli dir [command]
@@ -135,7 +135,7 @@ Commands:
135135
```shell
136136
cli file - File commands
137137
138-
Shortcut: f
138+
Alias: f
139139
140140
Usage:
141141
cli file [command]
@@ -154,7 +154,7 @@ Commands:
154154
```shell
155155
cli dir - Directory commands
156156
157-
Shortcut: d
157+
Alias: d
158158
159159
Usage:
160160
cli dir [command]
@@ -177,7 +177,7 @@ Options:
177177
```shell
178178
cli file - File commands
179179
180-
Shortcut: f
180+
Alias: f
181181
182182
Usage:
183183
cli file [command]

examples/commands-nested/src/bashly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.0
44

55
commands:
66
- name: dir
7-
short: d
7+
alias: d
88
help: Directory commands
99

1010
# The `commands` array can be nested inside any other command
@@ -29,7 +29,7 @@ commands:
2929
help: Remove even if when not empty
3030

3131
- name: file
32-
short: f
32+
alias: f
3333
help: File commands
3434

3535
# The nested commands for `cli file` - will generate `cli file show` and

0 commit comments

Comments
 (0)