bcmd 0.5.6__py3-none-any.whl → 0.5.7__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.
- bcmd/tasks/code.py +7 -2
- {bcmd-0.5.6.dist-info → bcmd-0.5.7.dist-info}/METADATA +1 -1
- {bcmd-0.5.6.dist-info → bcmd-0.5.7.dist-info}/RECORD +6 -6
- {bcmd-0.5.6.dist-info → bcmd-0.5.7.dist-info}/WHEEL +0 -0
- {bcmd-0.5.6.dist-info → bcmd-0.5.7.dist-info}/entry_points.txt +0 -0
- {bcmd-0.5.6.dist-info → bcmd-0.5.7.dist-info}/top_level.txt +0 -0
bcmd/tasks/code.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
+
import os
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
from typing import Final
|
|
4
5
|
|
|
@@ -112,14 +113,18 @@ async def to_lf(
|
|
|
112
113
|
'.pytest_cache',
|
|
113
114
|
'__pycache__',
|
|
114
115
|
]
|
|
116
|
+
path = path or Path(os.getcwd())
|
|
115
117
|
files = bpath.listFile(path, True)
|
|
116
118
|
# 剔除子目录是这些的文件 .git venv ...
|
|
117
119
|
files = [x for x in files if not any([y in x.parts for y in ignoreSubDirs])]
|
|
118
120
|
|
|
119
121
|
async def convertFile(file: Path):
|
|
120
122
|
try:
|
|
121
|
-
await bfile.
|
|
122
|
-
|
|
123
|
+
content = await bfile.readText(file)
|
|
124
|
+
if '\r\n' in content:
|
|
125
|
+
content = content.replace('\r\n', '\n')
|
|
126
|
+
await bfile.writeText(file, content)
|
|
127
|
+
printYellow(file)
|
|
123
128
|
except:
|
|
124
129
|
pass
|
|
125
130
|
|
|
@@ -10,7 +10,7 @@ bcmd/resources/project/.vscode/settings.json,sha256=G4rCroWxEHcQfsqIJ6CXRHI6VGr3
|
|
|
10
10
|
bcmd/resources/project/.vscode/tasks.json,sha256=gouhpkrqiPz7v65Jw1Rz-BCYU3sSdmphzXIYCzVnoe0,1783
|
|
11
11
|
bcmd/tasks/__init__.py,sha256=siqJwKgsjiIQzarBsQaucjm6VEvDr1pJDuEd7UnDXSQ,316
|
|
12
12
|
bcmd/tasks/bin.py,sha256=B_e-HYOc2Cohk-1PbKHyKn3RhI8TAUfI2EBRoFEHiTM,2961
|
|
13
|
-
bcmd/tasks/code.py,sha256=
|
|
13
|
+
bcmd/tasks/code.py,sha256=IUs_ClZuSsBk2gavlitC8mkRrQQX9rvNDgR8cFxduBA,3992
|
|
14
14
|
bcmd/tasks/crypto.py,sha256=C2welnYfdI4Tc-W1cwkboGb6bk6NGWO0MRKm4Bzo_9Q,3216
|
|
15
15
|
bcmd/tasks/debian.py,sha256=B9aMIIct3vNqMJr5hTr1GegXVf20H49C27FMvRRGIzI,3004
|
|
16
16
|
bcmd/tasks/download.py,sha256=XdZYKi8zQTNYWEgUxeTNDqPgP7IGYJkMmlDDC9u93Vk,2315
|
|
@@ -24,8 +24,8 @@ bcmd/tasks/proxy.py,sha256=xvxN5PClUnc5LQpmq2Wug7_LUVpJboMWLXBvL9lX7EM,1552
|
|
|
24
24
|
bcmd/tasks/time.py,sha256=ZiqA1jdgl-TBtFSOxxP51nwv4g9iZItmkFKpf9MKelk,2453
|
|
25
25
|
bcmd/tasks/upgrade.py,sha256=ZiyecgVbnnoTU_LAsd78CIKA4ioc9so9pXpAM76b_0M,447
|
|
26
26
|
bcmd/tasks/venv.py,sha256=a7ZDyagUPQvCAXx3cZJIqJt0p1Iy5u5qmmj8iRbDQZE,7673
|
|
27
|
-
bcmd-0.5.
|
|
28
|
-
bcmd-0.5.
|
|
29
|
-
bcmd-0.5.
|
|
30
|
-
bcmd-0.5.
|
|
31
|
-
bcmd-0.5.
|
|
27
|
+
bcmd-0.5.7.dist-info/METADATA,sha256=VYojYhON5P2o-Vmd9J-I3tOCdWTVYqR4R6uqplVK8JI,475
|
|
28
|
+
bcmd-0.5.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
29
|
+
bcmd-0.5.7.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
|
|
30
|
+
bcmd-0.5.7.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
|
|
31
|
+
bcmd-0.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|