onyx-tasks/crates/onyx-cli/src/commands
Claude a79dcc4617
test: cover CLI workspace resolver, date picker, saturating version
Add regression tests for the bugs found in this smoke test:

- resolve_workspace: by-name, by-UUID, unknown-identifier, current-fallback,
  actionable no-workspace message.
- DateTimePicker: selected-day highlight must be month-scoped; committing
  after navigating months uses the selected month, not the viewed one.
- create_task: version is saturating_add on u64::MAX (doesn't panic/wrap).

Also fixes the three pre-existing clippy warnings (WorkspaceMode now uses
#[derive(Default)] + #[default], repository test drops unused binding,
sync test uses struct-update syntax instead of field-reassign-default).
2026-04-17 16:32:22 +00:00
..
group.rs refactor: deduplicate CLI group enable/disable into single function 2026-04-16 07:26:30 +00:00
init.rs Refactor workspaces to use UUID keys 2026-04-05 14:58:31 -07:00
list.rs Rename due_date to date across codebase 2026-04-14 07:36:10 -07:00
mod.rs test: cover CLI workspace resolver, date picker, saturating version 2026-04-17 16:32:22 +00:00
sync.rs fix(cli): accept workspace name or UUID, auto-select on first add 2026-04-17 16:15:45 +00:00
task.rs fix(cli): create task-edit scratch file with mode 0600 on unix 2026-04-17 16:28:20 +00:00
workspace.rs fix(cli): accept workspace name or UUID, auto-select on first add 2026-04-17 16:15:45 +00:00