修改命令列表读取的配置方式

This commit is contained in:
li-xiaochen 2024-12-02 22:55:39 +08:00
parent 3aad1fe8ff
commit a2726b465d

View file

@ -42,10 +42,10 @@ command_list = {
"lfs": "git\\bin\\git lfs install",
"ensurepip": "python\\python -m ensurepip --default-pip",
"clone": "git\\bin\\git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow",
"fetch": lambda: f"..\\git\\bin\\git fetch origin {config['branch']}",
"switch": lambda: f"..\\git\\bin\\git switch -f {config['branch']}",
"reset": lambda: f"..\\git\\bin\\git reset --hard origin/{config['branch']}",
"pip_install": lambda: f"..\\python\\Scripts\\pip install --no-cache-dir -i {mirror_list[config['mirror']]} -r requirements.txt --no-warn-script-location",
"fetch": lambda: f"..\\git\\bin\\git fetch origin {config.conf.branch}",
"switch": lambda: f"..\\git\\bin\\git switch -f {config.conf.branch}",
"reset": lambda: f"..\\git\\bin\\git reset --hard origin/{config.conf.branch}",
"pip_install": lambda: f"..\\python\\Scripts\\pip install --no-cache-dir -i {mirror_list[config.conf.mirror]} -r requirements.txt --no-warn-script-location",
"webview": "start ..\\python\\pythonw webview_ui.py",
"manager": "start ..\\python\\pythonw manager.py",
}