Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
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
9 changes: 8 additions & 1 deletion packages/jumpstarter-cli/jumpstarter_cli/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@
from pydantic import TypeAdapter, ValidationError
from pytimeparse2 import parse as parse_duration


def _opt_selector_callback(_ctx, _param, value):
"""Combine multiple selector values into a single comma-separated string."""
return ",".join(value) if value else None

opt_selector = click.option(
"-l",
"--selector",
multiple=True,
callback=_opt_selector_callback,
help="Selector (label query) to filter on, supports '=', '==', and '!=' (e.g. -l key1=value1,key2=value2)."
" Matching objects must satisfy all of the specified label constraints.",
" Matching objects must satisfy all of the specified label constraints. Can be specified multiple times.",
)


Expand Down
Loading