diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
| commit | f57ccb885d20c48e1dae65b8ad5c46375b9a11a9 (patch) | |
| tree | a023c5f5af65cfe8f20354c388c683c57437e5d2 /internal/askcli/task_selector.go | |
| parent | 56e9f980e52a53197ace71acdb277ba0e0368916 (diff) | |
docs: document askcli exports
Diffstat (limited to 'internal/askcli/task_selector.go')
| -rw-r--r-- | internal/askcli/task_selector.go | 2 |
1 files changed, 2 insertions, 0 deletions
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" } |
