powercli 0.3.7__tar.gz → 0.3.8__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.
- {powercli-0.3.7 → powercli-0.3.8}/PKG-INFO +4 -4
- {powercli-0.3.7 → powercli-0.3.8}/README.md +1 -1
- {powercli-0.3.7 → powercli-0.3.8}/pyproject.toml +10 -4
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/runner.py +3 -2
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/input.py +2 -2
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/progress.py +6 -1
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/PKG-INFO +4 -4
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/requires.txt +1 -1
- {powercli-0.3.7 → powercli-0.3.8}/LICENSE +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/setup.cfg +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/__init__.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/cli/__init__.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/cli/entry_point.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/__init__.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/commands.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/open_.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/commands/run.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/models/__init__.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/models/models.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/__init__.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/console.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/message.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/rich.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/output/status.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/cli/py.typed +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/SOURCES.txt +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/dependency_links.txt +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/entry_points.txt +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/src/powercli.egg-info/top_level.txt +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_cli_entry_point.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_input.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_message.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_output.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_progress.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_run.py +0 -0
- {powercli-0.3.7 → powercli-0.3.8}/tests/test_runner.py +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: powercli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: High-level CLI interaction
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Source Code, https://github.com/quintenroets/cli
|
|
8
|
-
Requires-Python:
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Dist: pexpect<5,>=4.9.0
|
|
12
12
|
Requires-Dist: rich<15,>=14.0.1
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
|
|
15
|
-
Requires-Dist: package-dev-tools<1,>=0.
|
|
15
|
+
Requires-Dist: package-dev-tools<1,>=0.8.0; extra == "dev"
|
|
16
16
|
Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
|
|
17
17
|
Requires-Dist: superpathlib<3,>=2.0.2; extra == "dev"
|
|
18
18
|
Dynamic: license-file
|
|
@@ -20,7 +20,7 @@ Dynamic: license-file
|
|
|
20
20
|
# PowerCLI
|
|
21
21
|
[](https://badge.fury.io/py/powercli)
|
|
22
22
|

|
|
23
|
-

|
|
24
24
|

|
|
25
25
|

|
|
26
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# PowerCLI
|
|
2
2
|
[](https://badge.fury.io/py/powercli)
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|

|
|
6
6
|

|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "powercli"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.8"
|
|
4
4
|
description = "High-level CLI interaction"
|
|
5
5
|
authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
readme = "README.md"
|
|
8
|
-
requires-python = ">=3.10
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
9
|
dependencies = [
|
|
10
10
|
"pexpect >=4.9.0, <5",
|
|
11
11
|
"rich >=14.0.1, <15",
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
[project.optional-dependencies]
|
|
15
15
|
dev = [
|
|
16
16
|
"hypothesis >=6.97.1, <7",
|
|
17
|
-
"package-dev-tools >=0.
|
|
17
|
+
"package-dev-tools >=0.8.0, <1",
|
|
18
18
|
"package-dev-utils >=0.1.6, <1",
|
|
19
19
|
"superpathlib >=2.0.2, <3",
|
|
20
20
|
]
|
|
@@ -58,7 +58,13 @@ fix = true
|
|
|
58
58
|
select = ["ALL"]
|
|
59
59
|
ignore = [
|
|
60
60
|
"ANN401", # annotated with Any
|
|
61
|
-
"D",
|
|
61
|
+
"D", # docstrings
|
|
62
|
+
"D1", # missing docstrings
|
|
63
|
+
"D200", # one-line docstring
|
|
64
|
+
"D203", # conflicts with D211
|
|
65
|
+
"D205", # blank line between summary and description
|
|
66
|
+
"D212", # conflicts with D213
|
|
67
|
+
"D401", # imperative first line
|
|
62
68
|
"G004", # logging f-string
|
|
63
69
|
"S101", # assert used
|
|
64
70
|
]
|
|
@@ -54,7 +54,7 @@ class Runner(Generic[T1]):
|
|
|
54
54
|
return command_preparer.run()
|
|
55
55
|
|
|
56
56
|
def capture_tty_output(self) -> str:
|
|
57
|
-
import tempfile
|
|
57
|
+
import tempfile # noqa: PLC0415
|
|
58
58
|
|
|
59
59
|
with tempfile.TemporaryFile() as untyped_log_file:
|
|
60
60
|
log_file = typing.cast("io.TextIOWrapper", untyped_log_file)
|
|
@@ -63,7 +63,7 @@ class Runner(Generic[T1]):
|
|
|
63
63
|
return log_file.read()
|
|
64
64
|
|
|
65
65
|
def run_in_tty(self, log_file: io.TextIOWrapper) -> None:
|
|
66
|
-
import pexpect
|
|
66
|
+
import pexpect # noqa: PLC0415
|
|
67
67
|
|
|
68
68
|
command, *args = self.command_parts
|
|
69
69
|
child = pexpect.spawn(command, args, timeout=None, logfile=log_file)
|
|
@@ -81,6 +81,7 @@ class Runner(Generic[T1]):
|
|
|
81
81
|
|
|
82
82
|
def run(
|
|
83
83
|
self,
|
|
84
|
+
*,
|
|
84
85
|
capture_output: bool | None = None,
|
|
85
86
|
) -> subprocess.CompletedProcess[T1]:
|
|
86
87
|
if capture_output is None:
|
|
@@ -13,12 +13,12 @@ def ask(question: str) -> str:
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def prompt(*args: Any, **kwargs: Any) -> str:
|
|
16
|
-
from rich.prompt import Prompt
|
|
16
|
+
from rich.prompt import Prompt # noqa: PLC0415
|
|
17
17
|
|
|
18
18
|
return Prompt.ask(*args, **kwargs)
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def confirm(*args: Any, **kwargs: Any) -> bool:
|
|
22
|
-
from rich.prompt import Confirm
|
|
22
|
+
from rich.prompt import Confirm # noqa: PLC0415
|
|
23
23
|
|
|
24
24
|
return Confirm.ask(*args, **kwargs)
|
|
@@ -19,7 +19,12 @@ class ProgressManager:
|
|
|
19
19
|
|
|
20
20
|
@cached_property
|
|
21
21
|
def progress(self) -> Progress:
|
|
22
|
-
from rich.progress import
|
|
22
|
+
from rich.progress import ( # noqa: PLC0415
|
|
23
|
+
BarColumn,
|
|
24
|
+
Progress,
|
|
25
|
+
TextColumn,
|
|
26
|
+
TimeRemainingColumn,
|
|
27
|
+
)
|
|
23
28
|
|
|
24
29
|
column_message = (
|
|
25
30
|
"[progress.completed]{task.completed}/[progress.total]"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: powercli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: High-level CLI interaction
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Source Code, https://github.com/quintenroets/cli
|
|
8
|
-
Requires-Python:
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Dist: pexpect<5,>=4.9.0
|
|
12
12
|
Requires-Dist: rich<15,>=14.0.1
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
|
|
15
|
-
Requires-Dist: package-dev-tools<1,>=0.
|
|
15
|
+
Requires-Dist: package-dev-tools<1,>=0.8.0; extra == "dev"
|
|
16
16
|
Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
|
|
17
17
|
Requires-Dist: superpathlib<3,>=2.0.2; extra == "dev"
|
|
18
18
|
Dynamic: license-file
|
|
@@ -20,7 +20,7 @@ Dynamic: license-file
|
|
|
20
20
|
# PowerCLI
|
|
21
21
|
[](https://badge.fury.io/py/powercli)
|
|
22
22
|

|
|
23
|
-

|
|
24
24
|

|
|
25
25
|

|
|
26
26
|
|
|
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
|
|
File without changes
|
|
File without changes
|