diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 09:58:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 09:58:02 +0300 |
| commit | 8e351c86502cea78f1f0b3aa19cde7ca702bacab (patch) | |
| tree | 1340e27219255b0ebe49bdbe3b5c2fbd95df8810 /internal/askcli/taskexec.go | |
| parent | 9e8f558a1f6fcdb09a8a02dfcd2e3d8fc9ce613f (diff) | |
Rename task CLI from ask to do
- Move cmd/ask to cmd/do; mage BuildDo builds binary named do
- Update askcli help text, errors, Fish completion (complete -c do, __do_*)
- Task alias cache path: XDG cache hexai/do/task-aliases-v2.json
- Refresh README and docs; go install path cmd/do@latest
- Remove accidentally tracked cmd/ask build artifact; ignore cmd/do/do and cmd/do/ask
Made-with: Cursor
Diffstat (limited to 'internal/askcli/taskexec.go')
| -rw-r--r-- | internal/askcli/taskexec.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/askcli/taskexec.go b/internal/askcli/taskexec.go index a1ede37..e3915d9 100644 --- a/internal/askcli/taskexec.go +++ b/internal/askcli/taskexec.go @@ -16,7 +16,7 @@ type repoTopLevelDetector func(context.Context) (string, error) type commandRunner func(context.Context, string, []string, io.Reader, io.Writer, io.Writer) error -// Executor encapsulates how ask communicates with the Taskwarrior binary. +// Executor encapsulates how the do CLI communicates with the Taskwarrior binary. type Executor struct { commandName string findBinary binaryFinder @@ -86,14 +86,14 @@ func (e Executor) Run(ctx context.Context, args []string, stdin io.Reader, stdou func (e Executor) label() string { label := strings.TrimSpace(e.commandName) if label == "" { - return "ask" + return "do" } return label } func normalizeExecutor(e Executor) Executor { if e.commandName == "" { - e.commandName = "ask" + e.commandName = "do" } if e.findBinary == nil { e.findBinary = findTaskBinary |
