k8s-helper-cli 0.1.2__tar.gz → 0.2.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.
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/PKG-INFO +4 -1
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/README.md +3 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/pyproject.toml +1 -1
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper/__init__.py +1 -1
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper/cli.py +14 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/PKG-INFO +4 -1
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/LICENSE +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/setup.cfg +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper/config.py +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper/core.py +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper/utils.py +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/SOURCES.txt +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/dependency_links.txt +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/entry_points.txt +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/requires.txt +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/top_level.txt +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/tests/test_core.py +0 -0
- {k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/tests/test_integration.py +0 -0
@@ -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
|
@@ -498,6 +498,9 @@ k8s-helper provides a command-line interface for Kubernetes operations. After in
|
|
498
498
|
# Show help
|
499
499
|
k8s-helper --help
|
500
500
|
|
501
|
+
# Show version
|
502
|
+
k8s-helper --version
|
503
|
+
|
501
504
|
# Configure settings
|
502
505
|
k8s-helper config --namespace my-namespace
|
503
506
|
k8s-helper config --output-format yaml
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{k8s_helper_cli-0.1.2 → k8s_helper_cli-0.2.0}/src/k8s_helper_cli.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|