aaaaaaaaaaaaaaa
This commit is contained in:
shenjack 2023-11-25 20:44:35 +08:00
parent 43e02370d9
commit 8c05e04f4a
Signed by: shenjack
GPG Key ID: 7B1134A979775551
4 changed files with 16 additions and 4 deletions

View File

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

View File

@ -1,5 +1,14 @@
# Change log / 更新日志
## 0.2.0-rc.4
### lndl-nuitka
- 在 `lndl-nuitka` 中使用新添加的 `subprocess_to_bash` 函数展示命令
- 保证展示的命令可以直接运行
> 真的就是在刷版本号啊
## 0.2.0-rc.3
### lndl-nuitka

View File

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

View File

@ -10,7 +10,10 @@ import subprocess
from pathlib import Path
from typing import Dict, Union, List
from lib_not_dr.nuitka.reader.arg_parser import pyproject_toml, toml_path_cli, gen_subprocess_args
from lib_not_dr.nuitka.reader.arg_parser import (pyproject_toml,
toml_path_cli,
gen_subprocess_args,
subprocess_to_bash)
support_config_dict = Dict[str, Union[str, bool, List[Union[str, tuple]]]]
@ -83,7 +86,7 @@ toml_loads = get_toml_reader()
def display_config(subprocess_command: list) -> None:
print(f"The config is:\n\033[34m{subprocess_command} \033[0m")
print("shell command is:\n\033[34m", end="")
print(" ".join(subprocess_command), '\033[0m')
print(subprocess_to_bash(subprocess_command), '\033[0m')
print(f"Working Dir: \033[32m {Path().cwd().absolute()} \033[0m")