From 69d3ec004b8de3b9f7cfeb34686b9c344c787db4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 11 Apr 2026 22:20:57 +0300 Subject: Rename task CLI binary from do back to ask - Move cmd/do to cmd/ask; mage builds and installs ask; Fish completions to ask.fish - Update askcli help text, errors, executor default label, and Fish script (__ask_*) - Task alias cache subdirectory under XDG cache: hexai/ask/ - Rename integration test files and helpers; refresh README and docs - Rename plan-do-uuid-wrapper.md to plan-ask-uuid-wrapper.md Made-with: Cursor --- internal/askcli/dispatch.go | 52 ++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'internal/askcli/dispatch.go') diff --git a/internal/askcli/dispatch.go b/internal/askcli/dispatch.go index 69310c7..e326017 100644 --- a/internal/askcli/dispatch.go +++ b/internal/askcli/dispatch.go @@ -6,7 +6,7 @@ import ( "io" ) -// Runner performs CLI work that would otherwise be handled by the do CLI itself. +// Runner performs CLI work that would otherwise be handled by the ask CLI itself. // // The interface is implemented by the executor that ultimately proxies commands to Taskwarrior. type Runner interface { @@ -22,7 +22,7 @@ type Dispatcher struct { // NewDispatcher creates a Dispatcher backed by the provided Runner or a default executor when nil. func NewDispatcher(runner Runner) *Dispatcher { if runner == nil { - e := NewExecutor("do") + e := NewExecutor("ask") runner = &e } return &Dispatcher{runner: runner} @@ -68,36 +68,36 @@ func (d *Dispatcher) Dispatch(ctx context.Context, args []string, stdin io.Reade } func (d *Dispatcher) help(w io.Writer) (int, error) { - _, _ = io.WriteString(w, "do - task management CLI\n") + _, _ = io.WriteString(w, "ask - task management CLI\n") _, _ = io.WriteString(w, "\nProject prefixes:\n") - _, _ = io.WriteString(w, " do proj: Run a subcommand against an explicit project\n") + _, _ = io.WriteString(w, " ask proj: Run a subcommand against an explicit project\n") _, _ = io.WriteString(w, "\nScope prefixes:\n") - _, _ = io.WriteString(w, " do na Run a subcommand against project tasks without +agent\n") - _, _ = io.WriteString(w, " do no-agent Alias for do na\n") + _, _ = io.WriteString(w, " ask na Run a subcommand against project tasks without +agent\n") + _, _ = io.WriteString(w, " ask no-agent Alias for ask na\n") _, _ = io.WriteString(w, "\nSubcommands:\n") - _, _ = io.WriteString(w, " do add [mods...] [depends:,...] Create a new task and print created task \n") - _, _ = io.WriteString(w, " do list [filters] List active tasks (default)\n") - _, _ = io.WriteString(w, " do ready List READY tasks (not blocked)\n") - _, _ = io.WriteString(w, " do all [filters] List all tasks including completed/deleted\n") - _, _ = io.WriteString(w, " do info [id|uuid] Show task details or current started task\n") - _, _ = io.WriteString(w, " do annotate \"note\" Add annotation to task\n") - _, _ = io.WriteString(w, " do start Start working on task\n") - _, _ = io.WriteString(w, " do stop Stop work on a task\n") - _, _ = io.WriteString(w, " do done Mark task complete\n") - _, _ = io.WriteString(w, " do priority

Set priority (H/M/L)\n") - _, _ = io.WriteString(w, " do tag +/- Add or remove tag\n") - _, _ = io.WriteString(w, " do dep add Add dependency\n") - _, _ = io.WriteString(w, " do dep rm Remove dependency\n") - _, _ = io.WriteString(w, " do dep list List dependencies\n") - _, _ = io.WriteString(w, " do urgency List tasks sorted by urgency\n") - _, _ = io.WriteString(w, " do modify Modify task fields\n") - _, _ = io.WriteString(w, " do denotate \"text\" Remove annotation\n") - _, _ = io.WriteString(w, " do delete Delete a task\n") - _, _ = io.WriteString(w, " do fish Emit Fish shell completion script\n") + _, _ = io.WriteString(w, " ask add [mods...] [depends:,...] Create a new task and print created task \n") + _, _ = io.WriteString(w, " ask list [filters] List active tasks (default)\n") + _, _ = io.WriteString(w, " ask ready List READY tasks (not blocked)\n") + _, _ = io.WriteString(w, " ask all [filters] List all tasks including completed/deleted\n") + _, _ = io.WriteString(w, " ask info [id|uuid] Show task details or current started task\n") + _, _ = io.WriteString(w, " ask annotate \"note\" Add annotation to task\n") + _, _ = io.WriteString(w, " ask start Start working on task\n") + _, _ = io.WriteString(w, " ask stop Stop work on a task\n") + _, _ = io.WriteString(w, " ask done Mark task complete\n") + _, _ = io.WriteString(w, " ask priority

Set priority (H/M/L)\n") + _, _ = io.WriteString(w, " ask tag +/- Add or remove tag\n") + _, _ = io.WriteString(w, " ask dep add Add dependency\n") + _, _ = io.WriteString(w, " ask dep rm Remove dependency\n") + _, _ = io.WriteString(w, " ask dep list List dependencies\n") + _, _ = io.WriteString(w, " ask urgency List tasks sorted by urgency\n") + _, _ = io.WriteString(w, " ask modify Modify task fields\n") + _, _ = io.WriteString(w, " ask denotate \"text\" Remove annotation\n") + _, _ = io.WriteString(w, " ask delete Delete a task\n") + _, _ = io.WriteString(w, " ask fish Emit Fish shell completion script\n") return 0, nil } func (d *Dispatcher) unknownCommand(w io.Writer, subcommand string) (int, error) { - fmt.Fprintf(w, "do: unknown subcommand %q\n", subcommand) + fmt.Fprintf(w, "ask: unknown subcommand %q\n", subcommand) return 1, nil } -- cgit v1.2.3