jap/jap.sh

33 lines
571 B
Bash
Raw Normal View History

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
;;
'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-02-20 15:35:52 +08:00
docs/bin/codecov.sh $2
2021-02-18 13:46:34 +08:00
;;
2021-01-27 17:07:22 +08:00
*)
help
esac