forked from johnfonner/abaco-cli
-
Notifications
You must be signed in to change notification settings - Fork 3
/
abaco
executable file
·123 lines (97 loc) · 2.3 KB
/
abaco
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env bash
THIS=$(basename $0)
HELP="
Usage: ${THIS} [COMMAND] [OPTION]...
Set of commands for interacting with Abaco API. Options vary by
command; use -h flag after command to view usage details.
Commands:
list, ls, actors, images list actors
create, make, register create new actor
delete, remove, rm remove actor
update, change update base Docker image
permissions, share list and update actor permissions
workers, worker view and add workers
submit, run run actor
executions view actor executions
messages, mailbox count (or purge) an actor's messages
logs view execution logs
init create a new actor project
deploy build and deploy an actor
version report CLI and service versions
aliases, alias manage aliases for actors
GitHub Issues:
https://github.com/TACC-Cloud/abaco-cli/issues
Documentation:
Abaco: https://abaco.readthedocs.io/en/latest/
Help:
"
# nonces manage nonces for actors
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
case "$1" in
list | ls | actors | images)
shift
bash $DIR/abaco-list.sh "$@"
;;
create | make | register)
shift
bash $DIR/abaco-create.sh "$@"
;;
delete | remove | rm)
shift
bash $DIR/abaco-delete.sh "$@"
;;
update | change)
shift
bash $DIR/abaco-update.sh "$@"
;;
permissions | share)
shift
bash $DIR/abaco-permissions.sh "$@"
;;
workers | worker)
shift
bash $DIR/abaco-workers.sh "$@"
;;
submit | run)
shift
bash $DIR/abaco-submit.sh "$@"
;;
executions)
shift
bash $DIR/abaco-executions.sh "$@"
;;
logs)
shift
bash $DIR/abaco-logs.sh "$@"
;;
deploy)
shift
bash $DIR/abaco-deploy.sh "$@"
;;
init)
shift
bash $DIR/abaco-init.sh "$@"
;;
version)
shift
bash $DIR/abaco-version.sh "$@"
;;
messages | mailbox)
shift
bash $DIR/abaco-messages.sh "$@"
;;
aliases | alias)
shift
bash $DIR/abaco-aliases.sh "$@"
;;
#nonces | nonce)
# shift
# bash $DIR/abaco-nonces.sh "$@"
# ;;
*)
shift
echo "$HELP"
exit 0
;;
esac