#!/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