-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsx-helm
executable file
·38 lines (35 loc) · 1.33 KB
/
sx-helm
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
#!/bin/bash
PROJECT_PATH=$(dirname "$(readlink -f "$0")")
export PROJECT_CHARTPATH=$PROJECT_PATH/charts
PROJECT_LIBPATH=$PROJECT_PATH/.tools
# shellcheck source=/dev/null
source "$PROJECT_LIBPATH/cli"
source "${PROJECT_LIBPATH}/cli-s3"
## Start prog switch
if [[ "$1" != "" ]]; then
case $1 in
list) routerList;;
publish) routerPublish;;
release) routerRelease "$@" ;;
archive) routerArchive "$@" ;;
archiveLegacy) routerArchiveLegacy "$@" ;;
syncfroms3) routerSyncFromS3 "$@" ;;
synctos3) routerSyncToS3 "$@" ;;
version) routerVersion;;
*)
case $2 in
info) routerChartInfo "$1";;
create) routerChartCreate "$1" "$3";;
schemagen) routerChartSchemagen "$1" "$3";;
test) routerChartTest "$1" "$3" "$4";;
package) routerChartPackage "$1";;
release) routerChartRelease "$1" "$3" "$4";;
delete) routerChartDelete "$1" ;;
publish) routerChartPublish "$@" ;;
*) menuUsageChart "$@" ;;
esac
;;
esac
else
menuUsage
fi