k8s-helper-cli 0.1.2__py3-none-any.whl → 0.2.0__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.
- k8s_helper/__init__.py +1 -1
- k8s_helper/cli.py +14 -0
- {k8s_helper_cli-0.1.2.dist-info → k8s_helper_cli-0.2.0.dist-info}/METADATA +4 -1
- k8s_helper_cli-0.2.0.dist-info/RECORD +11 -0
- k8s_helper_cli-0.1.2.dist-info/RECORD +0 -11
- {k8s_helper_cli-0.1.2.dist-info → k8s_helper_cli-0.2.0.dist-info}/WHEEL +0 -0
- {k8s_helper_cli-0.1.2.dist-info → k8s_helper_cli-0.2.0.dist-info}/entry_points.txt +0 -0
- {k8s_helper_cli-0.1.2.dist-info → k8s_helper_cli-0.2.0.dist-info}/licenses/LICENSE +0 -0
- {k8s_helper_cli-0.1.2.dist-info → k8s_helper_cli-0.2.0.dist-info}/top_level.txt +0 -0
k8s_helper/__init__.py
CHANGED
k8s_helper/cli.py
CHANGED
@@ -23,10 +23,24 @@ from .utils import (
|
|
23
23
|
parse_env_vars,
|
24
24
|
parse_labels
|
25
25
|
)
|
26
|
+
from . import __version__
|
27
|
+
|
28
|
+
def version_callback(value: bool):
|
29
|
+
"""Version callback for the CLI"""
|
30
|
+
if value:
|
31
|
+
typer.echo(f"k8s-helper-cli version {__version__}")
|
32
|
+
raise typer.Exit()
|
26
33
|
|
27
34
|
app = typer.Typer(help="k8s-helper: Simplified Kubernetes operations")
|
28
35
|
console = Console()
|
29
36
|
|
37
|
+
@app.callback()
|
38
|
+
def main(
|
39
|
+
version: Optional[bool] = typer.Option(None, "--version", callback=version_callback, is_eager=True, help="Show version and exit")
|
40
|
+
):
|
41
|
+
"""Main callback to handle global options"""
|
42
|
+
return
|
43
|
+
|
30
44
|
# Global options
|
31
45
|
namespace_option = typer.Option(None, "--namespace", "-n", help="Kubernetes namespace")
|
32
46
|
output_option = typer.Option("table", "--output", "-o", help="Output format: table, yaml, json")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: k8s-helper-cli
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: A simplified Python wrapper for common Kubernetes operations
|
5
5
|
Author-email: Harshit Chatterjee <harshitchatterjee50@gmail.com>
|
6
6
|
License-Expression: MIT
|
@@ -523,6 +523,9 @@ k8s-helper provides a command-line interface for Kubernetes operations. After in
|
|
523
523
|
# Show help
|
524
524
|
k8s-helper --help
|
525
525
|
|
526
|
+
# Show version
|
527
|
+
k8s-helper --version
|
528
|
+
|
526
529
|
# Configure settings
|
527
530
|
k8s-helper config --namespace my-namespace
|
528
531
|
k8s-helper config --output-format yaml
|
@@ -0,0 +1,11 @@
|
|
1
|
+
k8s_helper/__init__.py,sha256=Q2GcFYJIwXQ5EmkCG5Tm8NKEKU6e4pKvNsUD1PSZkxg,2666
|
2
|
+
k8s_helper/cli.py,sha256=s7O2sxkdrrpVyZcqL9tEQg4gYytkmBSzESqiflx-Xc4,18722
|
3
|
+
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
+
k8s_helper/core.py,sha256=gCQkJSEQ3_ectExB9h1rFvI56Egysg50eVgYtpfquH0,21066
|
5
|
+
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
+
k8s_helper_cli-0.2.0.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
+
k8s_helper_cli-0.2.0.dist-info/METADATA,sha256=Q4WVmlwoAhp5IT1vgiOGOB-HHv1Xof3uwgpHQpapbUM,23379
|
8
|
+
k8s_helper_cli-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
k8s_helper_cli-0.2.0.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
+
k8s_helper_cli-0.2.0.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
+
k8s_helper_cli-0.2.0.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
k8s_helper/__init__.py,sha256=QjPeV7P3FN7lYoU83Y786Mu2zwevuJeW8uL4kRiqhN8,2666
|
2
|
-
k8s_helper/cli.py,sha256=HSa_JXe-LB7pUYJIBM3KxjsRLVFe1fSDD6uwG_NJn6A,18282
|
3
|
-
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
-
k8s_helper/core.py,sha256=gCQkJSEQ3_ectExB9h1rFvI56Egysg50eVgYtpfquH0,21066
|
5
|
-
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
-
k8s_helper_cli-0.1.2.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
-
k8s_helper_cli-0.1.2.dist-info/METADATA,sha256=EHDDnCm3EY0cP8EjxWKwVsPFbjx3ZVilHKm0_05HAN0,23339
|
8
|
-
k8s_helper_cli-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
-
k8s_helper_cli-0.1.2.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
-
k8s_helper_cli-0.1.2.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
-
k8s_helper_cli-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|