diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 06:44:25 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 06:44:25 +0200 |
| commit | 21c1d5c9cc4974ba490b329acae735ff6bde9973 (patch) | |
| tree | 6eceefd9094eebb9c03eb2fa42d406c9cb2aea9f /internal/askcli/command_info_add.go | |
| parent | 1f4c09e0f5a2a38c0b133264ec24e8ae5e5a3c22 (diff) | |
fix ask add alias output for 1a1731dc-1f11-42bd-be12-4c1af7f7e673
Diffstat (limited to 'internal/askcli/command_info_add.go')
| -rw-r--r-- | internal/askcli/command_info_add.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/askcli/command_info_add.go b/internal/askcli/command_info_add.go index 5332e71..4fa0941 100644 --- a/internal/askcli/command_info_add.go +++ b/internal/askcli/command_info_add.go @@ -104,7 +104,12 @@ func (d Dispatcher) handleAdd(ctx context.Context, args []string, stdout, stderr io.WriteString(stderr, "error: could not parse UUID from task creation output\n") return 1, nil } - io.WriteString(stdout, uuid+"\n") + aliases, err := ensureTaskAliasesForUUIDs([]string{uuid}) + if err != nil { + fmt.Fprintf(stderr, "error: failed to assign task alias: %v\n", err) + return 1, nil + } + io.WriteString(stdout, displayTaskAlias(uuid, aliases)+"\n") return 0, nil } |
