bcmd 0.5.6__tar.gz → 0.5.7__tar.gz

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.

Files changed (37) hide show
  1. {bcmd-0.5.6 → bcmd-0.5.7}/PKG-INFO +1 -1
  2. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/code.py +7 -2
  3. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/PKG-INFO +1 -1
  4. {bcmd-0.5.6 → bcmd-0.5.7}/pyproject.toml +1 -1
  5. {bcmd-0.5.6 → bcmd-0.5.7}/MANIFEST.in +0 -0
  6. {bcmd-0.5.6 → bcmd-0.5.7}/README.md +0 -0
  7. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/__init__.py +0 -0
  8. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/common/__init__.py +0 -0
  9. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/common/func.py +0 -0
  10. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/common/password.py +0 -0
  11. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/main.py +0 -0
  12. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/resources/project/.gitignore +0 -0
  13. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/resources/project/.vscode/launch.json +0 -0
  14. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/resources/project/.vscode/settings.json +0 -0
  15. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/resources/project/.vscode/tasks.json +0 -0
  16. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/resources/project/main.py +0 -0
  17. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/__init__.py +0 -0
  18. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/bin.py +0 -0
  19. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/crypto.py +0 -0
  20. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/debian.py +0 -0
  21. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/download.py +0 -0
  22. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/image.py +0 -0
  23. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/json.py +0 -0
  24. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/lib.py +0 -0
  25. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/math.py +0 -0
  26. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/mirror.py +0 -0
  27. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/project.py +0 -0
  28. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/proxy.py +0 -0
  29. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/time.py +0 -0
  30. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/upgrade.py +0 -0
  31. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd/tasks/venv.py +0 -0
  32. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/SOURCES.txt +0 -0
  33. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/dependency_links.txt +0 -0
  34. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/entry_points.txt +0 -0
  35. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/requires.txt +0 -0
  36. {bcmd-0.5.6 → bcmd-0.5.7}/bcmd.egg-info/top_level.txt +0 -0
  37. {bcmd-0.5.6 → bcmd-0.5.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bcmd
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Commands for Beni
5
5
  Author-email: Beni Mang <benimang@126.com>
6
6
  Maintainer-email: Beni Mang <benimang@126.com>
@@ -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.toLf(file)
122
- print(file)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bcmd
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Commands for Beni
5
5
  Author-email: Beni Mang <benimang@126.com>
6
6
  Maintainer-email: Beni Mang <benimang@126.com>
@@ -3,7 +3,7 @@
3
3
 
4
4
  [project]
5
5
  name = 'bcmd'
6
- version = '0.5.6'
6
+ version = '0.5.7'
7
7
  description = 'Commands for Beni'
8
8
  requires-python = '>=3.10'
9
9
  keywords = ['benimang', 'beni', 'bcmd']
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes