bcmd 0.0.21__py3-none-any.whl → 0.0.23__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/main.py CHANGED
@@ -5,14 +5,10 @@ from beni import btask
5
5
  from .tasks import *
6
6
 
7
7
 
8
- def init():
8
+ def run():
9
9
  btask.options.lock = 'bcmd'
10
-
11
-
12
- async def main():
13
- init()
14
- await btask.main()
10
+ asyncio.run(btask.main())
15
11
 
16
12
 
17
13
  if __name__ == '__main__':
18
- asyncio.run(main())
14
+ run()
bcmd/tasks/time.py CHANGED
@@ -22,6 +22,7 @@ async def showtime(values: list[str] = typer.Argument(None)):
22
22
  beni time 2021-9-23\n
23
23
  beni time 2021-9-23 09:47:00\n
24
24
  '''
25
+ values = values or []
25
26
  assert len(values) <= 2, '参数过多'
26
27
  value1: str | None = values[0] if len(values) >= 1 else None
27
28
  value2: str | None = values[1] if len(values) >= 2 else None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bcmd
3
- Version: 0.0.21
3
+ Version: 0.0.23
4
4
  Summary: Commands for Beni
5
5
  Author: Beni Mang
6
6
  Author-email: benimang@126.com
@@ -11,7 +11,7 @@ Requires-Dist: aioconsole
11
11
  Requires-Dist: aiofiles
12
12
  Requires-Dist: aiohttp
13
13
  Requires-Dist: autopep8
14
- Requires-Dist: benimang (>=0.4.11)
14
+ Requires-Dist: benimang (>=0.4.12)
15
15
  Requires-Dist: build
16
16
  Requires-Dist: colorama
17
17
  Requires-Dist: nest-asyncio
@@ -1,6 +1,5 @@
1
1
  bcmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- bcmd/dev.py,sha256=zoqfQZrCEvH1tlOL-ZJdqLVE6gp00GT2tBEO5s34BzE,723
3
- bcmd/main.py,sha256=b6Ic1p3Eb95n1o1GykqEOotBbRNafQHydyCNJNeQh4E,214
2
+ bcmd/main.py,sha256=ym4RpCxAzPLlml46AQ7V7mJPrGcn7KHhB33hSEazoEI,175
4
3
  bcmd/tasks/__init__.py,sha256=VJoj6MssFDRWezrLtaXLvBKycig7G8G3qw64JJ8KEp8,78
5
4
  bcmd/tasks/bin.py,sha256=5fTiMe5GV_1w1PenIIFGtjgMRwlwQvo_bIp2D3jvHAM,1775
6
5
  bcmd/tasks/json.py,sha256=ZGhtApi_IYoPoTKluiw4NKc1Pmc5aD8Dd9uv4BdIYsM,490
@@ -8,10 +7,10 @@ bcmd/tasks/lib.py,sha256=Zp0h_XweUz2TVIvFRBeHNTge4NVR3rmdt0oU7n-SvV0,2442
8
7
  bcmd/tasks/mirror.py,sha256=2IUeno1voK4TduwymIGxjkG1Q1IN-Jw3sfuRZkKSYHc,1384
9
8
  bcmd/tasks/proxy.py,sha256=DLIklFMRWUNBKE_0i8pciQdBE5bvAHCejXzzIYp4Ng8,641
10
9
  bcmd/tasks/task.py,sha256=iOTmLMbZYjsr9zpngaJGhE1jq4PxHKL8z_tjhpufnas,5830
11
- bcmd/tasks/time.py,sha256=Byjxr2xg6vwAHRw23iPXyiZFK3YXwqMMFgmzoHRdQhQ,2539
10
+ bcmd/tasks/time.py,sha256=LqwDQL_CvEFs6qgocGzXR00ZwR5yZQ4x-BZ2UD7YWUc,2565
12
11
  bcmd/tasks/venv.py,sha256=kUdXIvb233KYLtQphGsQoe84GD7HEmRahD2eKelB8mg,3080
13
- bcmd-0.0.21.dist-info/METADATA,sha256=74DStvYLvljEteGLLLmyBMC4uLqPmGHSeWBr7Qz8m_Y,645
14
- bcmd-0.0.21.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
15
- bcmd-0.0.21.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
16
- bcmd-0.0.21.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
17
- bcmd-0.0.21.dist-info/RECORD,,
12
+ bcmd-0.0.23.dist-info/METADATA,sha256=HLwW-CgzhMBjfoeoHPzWHUZPaSGlaTO7yTpP5iyYIe8,645
13
+ bcmd-0.0.23.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
14
+ bcmd-0.0.23.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
15
+ bcmd-0.0.23.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
16
+ bcmd-0.0.23.dist-info/RECORD,,
bcmd/dev.py DELETED
@@ -1,14 +0,0 @@
1
- # import main
2
- # from beni import btask, bpath
3
-
4
- # main.init()
5
- # btask.options.package = 'tasks'
6
-
7
- # # btask.dev('time.showtime', [])
8
- # # btask.dev('task.create', bpath.get(r'C:\Users\Administrator\Desktop\xaxatask'))
9
- # btask.dev('task.export', bpath.get(r'C:\Users\Administrator\Desktop\hahatask'))
10
- # # btask.dev('lib.version', bpath.get(r'C:\project\python\beni.0.4.x\src'), False)
11
- # # btask.dev('lib.publish', bpath.get(r'C:\project\python\bcmd\src'), False)
12
- # # btask.dev('bin.init', 'O-wYdw05CN_-8h-AJbfCY4j7ehFBSpGbA9r6XNRN', 't260-rNYRRMgomIG0gDmjJvOj5Vccu1V32GdqEce')
13
- # # btask.dev('bin.download', None, bpath.get(r'C:\Users\Administrator\Desktop\xxx\bin.list'), bpath.get(r'C:\Users\Administrator\Desktop\xxx\bin'))
14
-
File without changes