Skip to content

Commit 7c3a670

Browse files
committed
fix specs
1 parent d37a214 commit 7c3a670

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
creating user files in src
2+
skipped src/initialize.sh (exists)
3+
created src/download_command.sh
4+
created ./cli
5+
run ./cli --help to test your bash script
6+
+ ./cli
7+
PASS: API_KEY=must-be-available-in-initialize
8+
missing required environment variable: CONFIG_PATH
9+
+ export CONFIG_PATH=somepath
10+
+ CONFIG_PATH=somepath
11+
+ ./cli download source
12+
PASS: API_KEY=must-be-available-in-initialize
13+
# this file is located in 'src/download_command.sh'
14+
# code for 'cli download' goes here
15+
# you can edit it freely and regenerate (it will not be overwritten)
16+
args:
17+
- ${args[source]} = source
18+
+ export API_KEY=override-value
19+
+ API_KEY=override-value
20+
+ ./cli
21+
PASS: API_KEY=override-value
22+
cli - Sample application
23+
24+
Usage:
25+
cli [command]
26+
cli [command] --help | -h
27+
cli --version | -v
28+
29+
Commands:
30+
download Download a file
31+

0 commit comments

Comments
 (0)