2021-01-27 17:07:22 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# 参考自 hutool 工具
|
|
|
|
help(){
|
|
|
|
echo "--------------------------------------------------------------------------"
|
|
|
|
echo ""
|
2021-02-18 13:46:34 +08:00
|
|
|
echo "usage: ./jap.sh [updv] [version]"
|
2021-01-27 17:07:22 +08:00
|
|
|
echo ""
|
|
|
|
echo "-updv [version num] Update all jap related versions."
|
|
|
|
echo ""
|
|
|
|
echo "--------------------------------------------------------------------------"
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
'updv')
|
|
|
|
docs/bin/updVersion.sh $2
|
|
|
|
;;
|
2021-01-27 17:10:22 +08:00
|
|
|
'pd')
|
|
|
|
docs/bin/push-dev.sh
|
|
|
|
;;
|
2021-04-21 13:46:46 +08:00
|
|
|
'ppd')
|
|
|
|
docs/bin/pull-dev.sh
|
|
|
|
;;
|
2021-01-27 17:10:22 +08:00
|
|
|
'p')
|
|
|
|
docs/bin/push.sh
|
|
|
|
;;
|
2021-02-03 21:10:22 +08:00
|
|
|
'd')
|
|
|
|
docs/bin/deploy.sh
|
|
|
|
;;
|
2021-02-18 13:46:34 +08:00
|
|
|
'c')
|
2021-03-05 10:17:37 +08:00
|
|
|
docs/bin/codecov.sh $2 $3
|
2021-02-18 13:46:34 +08:00
|
|
|
;;
|
2021-01-27 17:07:22 +08:00
|
|
|
*)
|
|
|
|
help
|
|
|
|
esac
|