bcmd 0.6.14__py3-none-any.whl → 0.6.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bcmd might be problematic. Click here for more details.
- bcmd/tasks/upgrade.py +3 -6
- bcmd/tasks/wslProxy.py +3 -3
- {bcmd-0.6.14.dist-info → bcmd-0.6.15.dist-info}/METADATA +1 -1
- {bcmd-0.6.14.dist-info → bcmd-0.6.15.dist-info}/RECORD +7 -7
- {bcmd-0.6.14.dist-info → bcmd-0.6.15.dist-info}/WHEEL +0 -0
- {bcmd-0.6.14.dist-info → bcmd-0.6.15.dist-info}/entry_points.txt +0 -0
- {bcmd-0.6.14.dist-info → bcmd-0.6.15.dist-info}/top_level.txt +0 -0
bcmd/tasks/upgrade.py
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
from typing import Final
|
|
2
2
|
|
|
3
|
-
import pyperclip
|
|
4
3
|
import typer
|
|
5
|
-
from beni import bcolor, btask
|
|
4
|
+
from beni import bcolor, btask, brun
|
|
6
5
|
from beni.bfunc import syncCall
|
|
7
6
|
|
|
8
7
|
app: Final = btask.app
|
|
@@ -15,7 +14,5 @@ async def upgrade(
|
|
|
15
14
|
):
|
|
16
15
|
'使用 uv 官方源更新指定包到最新版本'
|
|
17
16
|
cmd = f'uv tool install -U --index https://pypi.org/simple {name}'
|
|
18
|
-
|
|
19
|
-
bcolor.printGreen(
|
|
20
|
-
bcolor.printGreen('已复制到剪贴板(需要手动执行)')
|
|
21
|
-
bcolor.printGreen('OK')
|
|
17
|
+
await brun.run(cmd)
|
|
18
|
+
bcolor.printGreen('OK')
|
bcmd/tasks/wslProxy.py
CHANGED
|
@@ -16,9 +16,9 @@ async def linux(
|
|
|
16
16
|
'生成终端设置代理服务器的命令'
|
|
17
17
|
ip = "$(ip route | grep default | awk '{print $3}')"
|
|
18
18
|
lineAry = textToAry(f'''
|
|
19
|
-
export HTTP_PROXY=http://{ip}
|
|
20
|
-
export HTTPS_PROXY=http://{ip}
|
|
21
|
-
export ALL_PROXY=http://{ip}
|
|
19
|
+
export HTTP_PROXY=http://{ip}:{port}
|
|
20
|
+
export HTTPS_PROXY=http://{ip}:{port}
|
|
21
|
+
export ALL_PROXY=http://{ip}:{port}
|
|
22
22
|
curl https://google.com.hk
|
|
23
23
|
''')
|
|
24
24
|
msg = '\r\n' + '\n'.join(lineAry) + '\n'
|
|
@@ -17,9 +17,9 @@ bcmd/tasks/mirror.py,sha256=nAe8NYftMKzht16MFBj7RqXwvVhR6Jh2uuAyJLh87og,1098
|
|
|
17
17
|
bcmd/tasks/pdf.py,sha256=fkHRgxqzrRxdb4_-9pL9wp2roqAHJPS_dVqAGJvRUsM,1504
|
|
18
18
|
bcmd/tasks/proxy.py,sha256=B85ebW_XPo_21j0YKf3oOK-8Crr85ezaPeZZnbnvO4E,1896
|
|
19
19
|
bcmd/tasks/time.py,sha256=ZiqA1jdgl-TBtFSOxxP51nwv4g9iZItmkFKpf9MKelk,2453
|
|
20
|
-
bcmd/tasks/upgrade.py,sha256=
|
|
20
|
+
bcmd/tasks/upgrade.py,sha256=mugcZNt3l82kMAPf-RANVawVSEPQP3h2lAjVZbU_tkA,426
|
|
21
21
|
bcmd/tasks/wasabi.py,sha256=xWFAxprSIlBqDDMGaNXZFb-SahnW1d_R9XxSKRYIhnM,3110
|
|
22
|
-
bcmd/tasks/wslProxy.py,sha256=
|
|
22
|
+
bcmd/tasks/wslProxy.py,sha256=1i1oyeNzUlmJS0QHv5XQABANiy9i_o-IpE3lymHUBJc,2009
|
|
23
23
|
bcmd/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
bcmd/utils/utils.py,sha256=Oyf5ubxaCD_T2GOz3zJkR4AJzfVcfBqtmL8Gk8_gOJs,202
|
|
25
25
|
test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -27,8 +27,8 @@ test/conftest.py,sha256=grlPunlsvrkt_8QPckmF4POiKUPVxIxm2TPAh_ZB-zs,405
|
|
|
27
27
|
test/test_pdf.py,sha256=7yYlfydyhy2dmVYdTA5Vir2AI8TUdzEi55fL-AqJmio,1533
|
|
28
28
|
test/test_proxy.py,sha256=UMF2hFFGUEbJR1jT2mO_wdo-7Rfp0NDqIdTRnOmwtjY,164
|
|
29
29
|
test/test_wasabi.py,sha256=qqXG1Kb9hKH6t624R173j6LagkgmejN0CFYt7kL0nNs,1066
|
|
30
|
-
bcmd-0.6.
|
|
31
|
-
bcmd-0.6.
|
|
32
|
-
bcmd-0.6.
|
|
33
|
-
bcmd-0.6.
|
|
34
|
-
bcmd-0.6.
|
|
30
|
+
bcmd-0.6.15.dist-info/METADATA,sha256=iyUSuBkg0jmqFqaC69Hr4ZUizIwGTpNdkq-26ttfspE,845
|
|
31
|
+
bcmd-0.6.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
32
|
+
bcmd-0.6.15.dist-info/entry_points.txt,sha256=mriCeYh3wksKcqq3-LtzyFkSCIdN1uZc1IJwom-SW1s,34
|
|
33
|
+
bcmd-0.6.15.dist-info/top_level.txt,sha256=fYY6tRrJ_G7tn24RXAG0M5ZKbcuaQznodfX1toFPSKs,10
|
|
34
|
+
bcmd-0.6.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|