Skip to content
Closed
Changes from 1 commit
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
Next Next commit
feat: add --text-only flag to wait_options
  • Loading branch information
miraj2729 committed Sep 17, 2026
commit ca8c7d860b2f332e1e4b3ec25ab21f2067d5d353
10 changes: 8 additions & 2 deletions src/unstract_cli/commands/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


def wait_options(*, default: bool = True) -> Callable[[F], F]:
"""`--wait` and its two knobs.
"""`--wait` and its two knobs, plus common output flags.

``--wait`` is a gate, not a duration: how long to wait is ``--timeout`` and
how often to check is ``--interval``, so neither has two spellings.
Expand Down Expand Up @@ -60,6 +60,12 @@ def decorate(func: F) -> F:
default=None,
help="Write the result here before printing it.",
),
click.option(
"--text-only",
is_flag=True,
default=False,
help="Output plain text only without extra formatting.",
),
Comment thread
miraj2729 marked this conversation as resolved.
Outdated
]
):
func = option(func)
Expand Down Expand Up @@ -111,4 +117,4 @@ def finish(
"finish",
"raw_fields",
"wait_options",
]
]