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_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'internal/askcli/dispatch_test.go') diff --git a/internal/askcli/dispatch_test.go b/internal/askcli/dispatch_test.go index 68f1e3b..d8f1458 100644 --- a/internal/askcli/dispatch_test.go +++ b/internal/askcli/dispatch_test.go @@ -23,22 +23,22 @@ func TestDispatcher_Help(t *testing.T) { t.Fatalf("help returned error: %v", err) } output := stdout.String() - if !strings.Contains(output, "do - task management CLI") { + if !strings.Contains(output, "ask - task management CLI") { t.Fatalf("help missing title: %s", output) } - if !strings.Contains(output, "do proj: ") { + if !strings.Contains(output, "ask proj: ") { t.Fatalf("help missing project prefix: %s", output) } - if !strings.Contains(output, "do na ") || !strings.Contains(output, "do no-agent ") { + if !strings.Contains(output, "ask na ") || !strings.Contains(output, "ask no-agent ") { t.Fatalf("help missing no-agent scope prefixes: %s", output) } - if !strings.Contains(output, "do list") { + if !strings.Contains(output, "ask list") { t.Fatalf("help missing list subcommand: %s", output) } - if !strings.Contains(output, "do all") { + if !strings.Contains(output, "ask all") { t.Fatalf("help missing all subcommand: %s", output) } - if !strings.Contains(output, "do fish") { + if !strings.Contains(output, "ask fish") { t.Fatalf("help missing fish subcommand: %s", output) } } @@ -131,8 +131,8 @@ func TestDispatcher_LongHelp(t *testing.T) { d.Dispatch(context.Background(), []string{"help"}, nil, &stdout, io.Discard) output := stdout.String() for _, sub := range []string{"add", "list", "all", "ready", "info", "annotate", "start", "stop", "done", "priority", "tag", "dep", "urgency", "modify", "denotate", "delete", "fish"} { - if !strings.Contains(output, "do "+sub) { - t.Errorf("help missing subcommand: do %s", sub) + if !strings.Contains(output, "ask "+sub) { + t.Errorf("help missing subcommand: ask %s", sub) } } } @@ -172,7 +172,7 @@ func TestDispatcher_FishSubcommandRejectsExtraArgs(t *testing.T) { if stdout.Len() != 0 { t.Fatalf("fish extra args wrote unexpected stdout: %q", stdout.String()) } - if got := stderr.String(); !strings.Contains(got, "usage: do fish") { + if got := stderr.String(); !strings.Contains(got, "usage: ask fish") { t.Fatalf("fish extra args stderr = %q, want usage", got) } } -- cgit v1.2.3