Skip to content

Commit 4aa4ebc

Browse files
committed
approve spece
1 parent 1048437 commit 4aa4ebc

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
+ bashly generate
2+
creating user files in src
3+
skipped src/initialize.sh (exists)
4+
skipped src/download_command.sh (exists)
5+
skipped src/upload_command.sh (exists)
6+
created ./cli
7+
run ./cli --help to test your bash script
8+
+ ./cli -h
9+
cli - Sample application
10+
11+
Usage:
12+
cli COMMAND
13+
cli [COMMAND] --help | -h
14+
cli --version | -v
15+
16+
Commands:
17+
download Download a file
18+
upload Upload a file
19+
20+
Options:
21+
--help, -h
22+
Show this help
23+
24+
--version, -v
25+
Show version number
26+
27+
+ ./cli download -h
28+
cli download - Download a file
29+
30+
Usage:
31+
cli download [OPTIONS]
32+
cli download --help | -h
33+
34+
Options:
35+
--help, -h
36+
Show this help
37+
38+
--force, -f
39+
Overwrite existing files
40+
41+
--debug, -d
42+
Show debug information
43+
44+
+ ./cli upload -h
45+
cli upload - Upload a file
46+
47+
Usage:
48+
cli upload [OPTIONS]
49+
cli upload --help | -h
50+
51+
Options:
52+
--help, -h
53+
Show this help
54+
55+
--force, -f
56+
Overwrite existing files
57+
58+
--debug, -d
59+
Show debug information
60+
61+
--password, -p PASSWORD
62+
Password to use for logging in
63+
64+
+ ./cli upload --force
65+
# this file is located in 'src/upload_command.sh'
66+
# code for 'cli upload' goes here
67+
# you can edit it freely and regenerate (it will not be overwritten)
68+
args:
69+
- ${args[--force]} = 1
70+
+ ./cli download --debug
71+
# this file is located in 'src/download_command.sh'
72+
# code for 'cli download' goes here
73+
# you can edit it freely and regenerate (it will not be overwritten)
74+
args:
75+
- ${args[--debug]} = 1

0 commit comments

Comments
 (0)