validio-cli 0.27.4__tar.gz → 0.27.5__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.
- {validio_cli-0.27.4 → validio_cli-0.27.5}/PKG-INFO +1 -1
- {validio_cli-0.27.4 → validio_cli-0.27.5}/pyproject.toml +1 -1
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/__init__.py +3 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/segments.py +3 -6
- {validio_cli-0.27.4 → validio_cli-0.27.5}/LICENSE +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/README_PUBLIC.md +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/channels.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/code.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/config.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/credentials.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/dbt.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/filters.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/incidents.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/metrics.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/namespaces.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/notification_rules.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/recommendations.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/resources.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/segmentations.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/sources.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/users.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/validators.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/entities/windows.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/bin/main.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/components.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/metadata.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/namespace.py +0 -0
- {validio_cli-0.27.4 → validio_cli-0.27.5}/validio_cli/schema.py +0 -0
|
@@ -3,7 +3,7 @@ name = "validio-cli"
|
|
|
3
3
|
# This version does not represent the released version or any tag. For each
|
|
4
4
|
# release we automatically bump this before building and publishing so this
|
|
5
5
|
# should be kept at 0.0.1dev1
|
|
6
|
-
version = "0.27.
|
|
6
|
+
version = "0.27.5"
|
|
7
7
|
description = "CLI tool to interact with the Validio platform"
|
|
8
8
|
authors = ["Validio <support@validio.io>"]
|
|
9
9
|
license = "Apache-2.0"
|
|
@@ -53,6 +53,9 @@ OutputFormatOption = typer.Option(
|
|
|
53
53
|
Identifier = typer.Argument(
|
|
54
54
|
default=None, help="Name or ID of the resource to get of this type"
|
|
55
55
|
)
|
|
56
|
+
RequiredIdentifier = typer.Argument(
|
|
57
|
+
default=..., help="Name or ID of the resource to get of this type"
|
|
58
|
+
)
|
|
56
59
|
Identifiers = typer.Argument(
|
|
57
60
|
default=None, help="Names or IDs of the sources to apply the command on"
|
|
58
61
|
)
|
|
@@ -5,10 +5,10 @@ import typer
|
|
|
5
5
|
from validio_cli import (
|
|
6
6
|
AsyncTyper,
|
|
7
7
|
ConfigDir,
|
|
8
|
-
Identifier,
|
|
9
8
|
Namespace,
|
|
10
9
|
OutputFormat,
|
|
11
10
|
OutputFormatOption,
|
|
11
|
+
RequiredIdentifier,
|
|
12
12
|
get_client,
|
|
13
13
|
output_json,
|
|
14
14
|
output_text,
|
|
@@ -23,13 +23,13 @@ async def get(
|
|
|
23
23
|
config_dir: str = ConfigDir,
|
|
24
24
|
output_format: OutputFormat = OutputFormatOption,
|
|
25
25
|
namespace: str = Namespace(),
|
|
26
|
-
|
|
26
|
+
segmentation: str = RequiredIdentifier,
|
|
27
27
|
max_fields: int = typer.Option(3, help="Maximum number of fields to show"),
|
|
28
28
|
) -> None:
|
|
29
29
|
vc, cfg = get_client(config_dir)
|
|
30
30
|
|
|
31
31
|
segments = await vc.get_segments(
|
|
32
|
-
segmentation_id=
|
|
32
|
+
segmentation_id=segmentation,
|
|
33
33
|
namespace_id=get_namespace(namespace, cfg),
|
|
34
34
|
)
|
|
35
35
|
|
|
@@ -39,7 +39,6 @@ async def get(
|
|
|
39
39
|
@dataclass
|
|
40
40
|
class SegmentOutput:
|
|
41
41
|
id: str
|
|
42
|
-
muted: bool
|
|
43
42
|
field_and_value: str
|
|
44
43
|
|
|
45
44
|
resources = []
|
|
@@ -56,7 +55,6 @@ async def get(
|
|
|
56
55
|
resources.append(
|
|
57
56
|
SegmentOutput(
|
|
58
57
|
id=segment["id"],
|
|
59
|
-
muted=segment["muted"],
|
|
60
58
|
field_and_value=", ".join(field_and_value) + additional,
|
|
61
59
|
)
|
|
62
60
|
)
|
|
@@ -65,7 +63,6 @@ async def get(
|
|
|
65
63
|
resources,
|
|
66
64
|
fields={
|
|
67
65
|
"id": None,
|
|
68
|
-
"muted": None,
|
|
69
66
|
"field_and_value": None,
|
|
70
67
|
},
|
|
71
68
|
)
|
|
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
|