mirror of
https://gitee.com/fujieid/jap.git
synced 2024-12-02 19:35:41 +08:00
36 lines
612 B
Bash
36 lines
612 B
Bash
#!/bin/bash
|
|
|
|
# 参考自 hutool 工具
|
|
help(){
|
|
echo "--------------------------------------------------------------------------"
|
|
echo ""
|
|
echo "usage: ./jap.sh [updv] [version]"
|
|
echo ""
|
|
echo "-updv [version num] Update all jap related versions."
|
|
echo ""
|
|
echo "--------------------------------------------------------------------------"
|
|
}
|
|
|
|
case "$1" in
|
|
'updv')
|
|
docs/bin/updVersion.sh $2
|
|
;;
|
|
'pd')
|
|
docs/bin/push-dev.sh
|
|
;;
|
|
'ppd')
|
|
docs/bin/pull-dev.sh
|
|
;;
|
|
'p')
|
|
docs/bin/push.sh
|
|
;;
|
|
'd')
|
|
docs/bin/deploy.sh
|
|
;;
|
|
'c')
|
|
docs/bin/codecov.sh $2 $3
|
|
;;
|
|
*)
|
|
help
|
|
esac
|