mirror of
https://gitee.com/fujieid/jap.git
synced 2024-12-02 19:35:41 +08:00
33 lines
574 B
Bash
33 lines
574 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
|
|
;;
|
|
'p')
|
|
docs/bin/push.sh
|
|
;;
|
|
'd')
|
|
docs/bin/deploy.sh
|
|
;;
|
|
'c')
|
|
docs/bin/codecov.sh $2 $3
|
|
;;
|
|
*)
|
|
help
|
|
esac
|