From f57ccb885d20c48e1dae65b8ad5c46375b9a11a9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 27 Mar 2026 11:33:33 +0200 Subject: docs: document askcli exports --- internal/askcli/task_selector.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/askcli/task_selector.go') diff --git a/internal/askcli/task_selector.go b/internal/askcli/task_selector.go index 220aa7c..82dc06f 100644 --- a/internal/askcli/task_selector.go +++ b/internal/askcli/task_selector.go @@ -137,6 +137,7 @@ func NormalizeUUID(s string) string { return strings.TrimPrefix(s, "uuid:") } +// IsNumericID reports whether the string is entirely numeric. func IsNumericID(s string) bool { if s == "" { return false @@ -149,6 +150,7 @@ func IsNumericID(s string) bool { return true } +// RejectNumericID returns the error message emitted when numeric Taskwarrior IDs are passed. func RejectNumericID() string { return "error: use a task alias ID or UUID, not a numeric Taskwarrior task ID\n" } -- cgit v1.2.3