summaryrefslogtreecommitdiff
path: root/internal/askcli/command_info_add.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-26 23:45:09 +0200
committerPaul Buetow <paul@buetow.org>2026-03-26 23:45:09 +0200
commitb67069c110c210b05507fca839d45b43431f5e86 (patch)
treeaeabcb0a86ba2cb8e9732605f6fea85538b32454 /internal/askcli/command_info_add.go
parentd4bdc94f5b29a9baa8517acd2d363383e1e3ee53 (diff)
askcli: resolve aliases for selector task 0b9480fe-ec1b-4c0e-a8b0-88f1f08b56d3
Diffstat (limited to 'internal/askcli/command_info_add.go')
-rw-r--r--internal/askcli/command_info_add.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/askcli/command_info_add.go b/internal/askcli/command_info_add.go
index 9a7b518..030cf62 100644
--- a/internal/askcli/command_info_add.go
+++ b/internal/askcli/command_info_add.go
@@ -31,11 +31,8 @@ func (d Dispatcher) handleInfo(ctx context.Context, args []string, stdout, stder
func (d Dispatcher) infoTasks(ctx context.Context, args []string, stderr io.Writer) ([]TaskExport, int, error) {
if len(args) >= 2 {
- uuid := NormalizeUUID(args[1])
- if IsNumericID(uuid) {
- return nil, 1, fmt.Errorf(strings.TrimSpace(RejectNumericID()))
- }
- return d.exportTasks(ctx, []string{"uuid:" + uuid, "export"}, stderr)
+ _, tasks, code, err := d.resolveTaskSelector(ctx, args[1], stderr)
+ return tasks, code, err
}
return d.startedInfoTasks(ctx, stderr)
}