-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedge
executable file
·98 lines (96 loc) · 2.26 KB
/
edge
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
#!/usr/bin/env bash
script_dir=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
case "$*" in
"input list"*)
shift 2
exec "$script_dir/input-list.sh" "$@"
;;
"input show"*)
shift 2
exec "$script_dir/input-show.sh" "$@"
;;
"input create"*)
shift 2
exec "$script_dir/input-create.sh" "$@"
;;
"input delete"*)
shift 2
exec "$script_dir/input-delete.sh" "$@"
;;
"output list"*)
shift 2
exec "$script_dir/output-list.sh" "$@"
;;
"output show"*)
shift 2
exec "$script_dir/output-show.sh" "$@"
;;
"output create"*)
shift 2
exec "$script_dir/output-create.sh" "$@"
;;
"output update"*)
shift 2
exec "$script_dir/output-update.sh" "$@"
;;
"output delete"*)
shift 2
exec "$script_dir/output-delete.sh" "$@"
;;
"appliance list"*)
shift 2
exec "$script_dir/appliance-list.sh"
;;
"appliance show"*)
shift 2
exec "$script_dir/appliance-show.sh" "$@"
;;
"appliance inputs"*)
shift 2
exec "$script_dir/appliance-inputs.sh" "$@"
;;
"appliance outputs"*)
shift 2
exec "$script_dir/appliance-outputs.sh" "$@"
;;
"appliance delete"*)
shift 2
exec "$script_dir/appliance-delete.sh" "$@"
;;
"appliance config"*)
shift 2
exec "$script_dir/appliance-config.sh" "$@"
;;
"appliance restart"*)
shift 2
exec "$script_dir/appliance-restart.sh" "$@"
;;
"group list"*)
shift 2
exec "$script_dir/group-list.sh" "$@"
;;
"group show"*)
shift 2
exec "$script_dir/group-show.sh" "$@"
;;
"region list"*)
shift 2
exec "$script_dir/region-list.sh" "$@"
;;
"region create"*)
shift 2
exec "$script_dir/region-create.sh" "$@"
;;
"region delete"*)
shift 2
exec "$script_dir/region-delete.sh" "$@"
;;
"build-info"*)
shift
exec "$script_dir/build-info.sh" "$@"
;;
*)
echo >&2 "Unknown subcommand: $1 $2"
exit 1
;;
esac