-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmanual_test.sh
executable file
·37 lines (34 loc) · 1.05 KB
/
manual_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Does not cover the complete function
# Run it manually to ensure that we didn't break clap
commands=(
"cargo run -- -h"
"cargo run -- task -h"
"cargo run -- --quickadd this is a test"
"cargo run -- task create --project '🦾 Digital' --content \"test\" --priority 2 --description \"THIS IS DESCRIPTION\""
"cargo run -- task edit"
"cargo run -- task edit -p '🦾 Digital'"
"cargo run -- task list"
"cargo run -- task list -s"
"cargo run -- task list --scheduled"
"cargo run -- project -h"
"cargo run -- project list"
"cargo run -- project empty --project Inbox"
"cargo run -- project empty -p Inbox"
"cargo run -- project schedule --project '🦾 Digital'"
"cargo run -- project prioritize --project '🦾 Digital'"
"cargo run -- project prioritize -p '🦾 Digital'"
"cargo run -- project process -p Inbox"
"cargo run -- project process --project Inbox"
"cargo run -- project import"
)
for cmd in "${commands[@]}"
do
echo ""
echo ""
echo "Executing command: $cmd"
if ! eval "$cmd"; then
echo "Command failed: $cmd"
exit 1
fi
done