Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit e1f4972

Browse files
committed
opt_selector enabled multiple labels
1 parent 09cb716 commit e1f4972

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/jumpstarter-cli/jumpstarter_cli

packages/jumpstarter-cli/jumpstarter_cli/common.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
from pydantic import TypeAdapter, ValidationError
66
from pytimeparse2 import parse as parse_duration
77

8+
9+
def _opt_selector_callback(ctx, param, value):
10+
return ",".join(value) if value else None
11+
812
opt_selector = click.option(
913
"-l",
1014
"--selector",
15+
multiple=True,
16+
callback=_opt_selector_callback,
1117
help="Selector (label query) to filter on, supports '=', '==', and '!=' (e.g. -l key1=value1,key2=value2)."
12-
" Matching objects must satisfy all of the specified label constraints.",
18+
" Matching objects must satisfy all of the specified label constraints. Can be specified multiple times.",
1319
)
1420

1521

0 commit comments

Comments
 (0)