This commit is contained in:
bmy
2024-07-04 17:51:37 +08:00
parent 564cb5a92d
commit 383f8db51c
2 changed files with 24 additions and 9 deletions

View File

@@ -10,6 +10,11 @@ run() {
python main.py
}
axis() {
cd ~/Workplace/toolkits
./axis_assist
}
command_array=("start" "run")
if [ $# -lt 1 ]; then
@@ -23,9 +28,12 @@ else
start # 这里添加了调用start函数的代码
elif [[ $1 == "run" || $1 == "-run" || $1 == "RUN" ]]; then
run # 假设你希望在这里调用run函数
elif [[ $1 == "axis" || $1 == "-axis" || $1 == "AXIS" ]]; then
axis #
elif [[ $1 == "help" || $1 == "-help" || $1 == "HELP" ]]; then
echo "start: 启动服务端脚本"
echo "run: 启动任务主程序脚本"
echo "axis: 執行機構調試腳本"
else
echo "无效的指令:$1"
fi