修改命令列表读取的配置方式
This commit is contained in:
parent
3aad1fe8ff
commit
a2726b465d
1 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue