-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathabaco
executable file
·63 lines (46 loc) · 1.61 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
#!/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
logs view execution logs
init create a new actor project
deploy build and deploy an actor
"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
case "$1" in
list|ls|actors|images) shift;
$DIR/abaco-list.sh "$@";;
create|make|register) shift;
$DIR/abaco-create.sh "$@";;
delete|remove|rm) shift;
$DIR/abaco-delete.sh "$@";;
update|change) shift;
$DIR/abaco-update.sh "$@";;
permissions|share) shift;
$DIR/abaco-permissions.sh "$@";;
workers|worker) shift;
$DIR/abaco-workers.sh "$@";;
submit|run) shift;
$DIR/abaco-submit.sh "$@";;
executions) shift;
$DIR/abaco-executions.sh "$@";;
logs) shift;
$DIR/abaco-logs.sh "$@";;
deploy) shift;
$DIR/abaco-deploy.sh "$@";;
init) shift;
$DIR/abaco-init.sh "$@";;
*) shift;
echo "$HELP"; exit 0;;
esac