Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions panther_analysis_tool/command/standard_args.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from enum import Enum
from typing import Annotated, List, Optional, TypeAlias

import typer
Expand Down Expand Up @@ -158,3 +159,24 @@
help="Number of parallel workers for schema validation. Default 1 (sequential).",
),
]


class OutputFormat(str, Enum):
"""Output format choices for the test command."""

text = "text"
json = "json"


OutputFormatType: TypeAlias = Annotated[
OutputFormat,
typer.Option(
"--output-format",
envvar="PANTHER_OUTPUT_FORMAT",
help=(
"Output format for test results. Only applies to the 'test' command. "
"'text' (default) prints human-readable colored output. "
"'json' prints a single JSON object to stdout suitable for CI/CD integration."
),
),
]
Loading
Loading