muscles-cli 1.0.2__tar.gz → 2.0.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: muscles-cli
3
- Version: 1.0.2
3
+ Version: 2.0.0
4
4
  Summary: Muscles CLI runtime for shared command routing and strategy execution
5
5
  License: MIT
6
6
  Author: Denis B.
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: 3.15
16
17
  Requires-Dist: dnspython (==2.6.1)
17
18
  Requires-Dist: muscles (>=1.0.0rc1,<2.0.0)
18
19
  Requires-Dist: pyyaml (>=6.0.0,<6.1.0)
@@ -115,6 +116,11 @@ app = App()
115
116
  assert app.run("bookings", "remove", "1") == "removed 1"
116
117
  ```
117
118
 
119
+ In a console entry point, call `app.run()` without arguments. `CliStrategy`
120
+ then reads the process arguments from `sys.argv[1:]`; application code does not
121
+ need to parse or forward them manually. Passing arguments explicitly is useful
122
+ for in-process calls and focused examples like the assertion above.
123
+
118
124
  ## Routing Model
119
125
 
120
126
  Groups and commands form a tree. That makes CLI routing close to HTTP routing:
@@ -83,6 +83,11 @@ app = App()
83
83
  assert app.run("bookings", "remove", "1") == "removed 1"
84
84
  ```
85
85
 
86
+ In a console entry point, call `app.run()` without arguments. `CliStrategy`
87
+ then reads the process arguments from `sys.argv[1:]`; application code does not
88
+ need to parse or forward them manually. Passing arguments explicitly is useful
89
+ for in-process calls and focused examples like the assertion above.
90
+
86
91
  ## Routing Model
87
92
 
88
93
  Groups and commands form a tree. That makes CLI routing close to HTTP routing:
@@ -5,12 +5,12 @@ build-backend = "poetry.core.masonry.api"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "muscles-cli"
8
- version = "1.0.2"
8
+ version = "2.0.0"
9
9
  description = "Muscles CLI runtime for shared command routing and strategy execution"
10
10
  readme = "README.md"
11
11
  authors = ["Denis B. <denis@butko.info>"]
12
12
  license = "MIT"
13
- packages = [{include = "muscles", from = "src"}]
13
+ packages = [{include = "muscles/cli", from = "src"}]
14
14
 
15
15
  [tool.poetry.urls]
16
16
  Homepage = "https://github.com/butkoden/muscles-cli"
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  __name__ = "Muscular CLI Framework"
3
- __version__ = "1.0.2"
3
+ __version__ = "2.0.0"
4
4
  __description__ = (
5
5
  "Muscular CLI Framework"
6
6
  )