简直刷版本号
This commit is contained in:
shenjack 2023-11-25 20:40:22 +08:00
parent 56cd9666b7
commit 43e02370d9
Signed by: shenjack
GPG Key ID: 7B1134A979775551
4 changed files with 19 additions and 2 deletions

View File

@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
## Information/信息 ## Information/信息
- Version / 版本: 0.2.0-rc.2 - Version / 版本: 0.2.0-rc.3
- Author / 作者: shenjackyuanjie <3695888@qq.com> - Author / 作者: shenjackyuanjie <3695888@qq.com>
> [shenjackyuanjie](https://github.com/shenjackyuanjie) > [shenjackyuanjie](https://github.com/shenjackyuanjie)

View File

@ -1,5 +1,13 @@
# Change log / 更新日志 # Change log / 更新日志
## 0.2.0-rc.3
### lndl-nuitka
- 在 `arg_parser` 中添加了函数 `subprocess_to_bash`
- 用于将 `arg_parser` 中的参数转换为 `bash` 命令
- 理论上可以直接运行
## 0.2.0-rc.1/2 ## 0.2.0-rc.1/2
### lndl-nuitka ### lndl-nuitka

View File

@ -4,7 +4,7 @@
# All rights reserved # All rights reserved
# ------------------------------- # -------------------------------
__version__ = '0.2.0-rc.2' __version__ = '0.2.0-rc.3'
from typing import TYPE_CHECKING from typing import TYPE_CHECKING

View File

@ -165,3 +165,12 @@ def gen_subprocess_args(nuitka_config:
continue continue
return cmd_list return cmd_list
def subprocess_to_bash(cmd_list: List[str]) -> str:
"""
:param cmd_list: list
:return: str
"""
cmd_list = [item if ' ' not in item else f'"{item}"' for item in cmd_list]
return " ".join(cmd_list)