Skip to content

zbobr_fix-52-update-commands#319

Open
milyin wants to merge 6 commits into
mainfrom
zbobr_fix-52-update-commands
Open

zbobr_fix-52-update-commands#319
milyin wants to merge 6 commits into
mainfrom
zbobr_fix-52-update-commands

Conversation

@milyin

@milyin milyin commented Apr 5, 2026

Copy link
Copy Markdown
Owner

@milyin milyin mentioned this pull request Apr 5, 2026
5 tasks
milyin and others added 5 commits April 7, 2026 01:45
Add a new `Select` variant to `TaskSubcommand` that provides the same
ready-task selection behavior previously available via `task list --select`.
The `--select` flag is removed from the `List` variant. `task process --select`
remains unchanged. Updates comment in cli.rs and adds tests.

Closes part of #318

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change --logs from a simple boolean flag (SetTrue) to an optional-value
flag using Append action with num_args=0..=1 and require_equals=true.

Supported forms: --logs, --logs=true, --logs=false. Space-separated form
(--logs true) is supported via the hoisting logic in parse_cli which joins
the value with '='. Multiple occurrences use last-value-wins semantics.

Updates the hoisting logic to handle OptionalValue args: these consume
the next token only if it doesn't start with '-', and join it with '='
for clap compatibility.

Closes #318

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Only consume the next token as a --logs value when it is a valid
  boolean literal (true/false), preventing theft of positional args
- Normalize space-separated --logs true/false in the pre-subcommand
  path so the advertised forms work regardless of placement
- Change logs field from Vec<String> to Vec<bool> so clap rejects
  invalid values (e.g. --logs=maybe) at parse time

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verifies that --logs=maybe is rejected at parse time now that
the field uses Vec<bool> instead of Vec<String>.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update commands

1 participant