summaryrefslogtreecommitdiff
path: root/internal/askcli/task_selector.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/askcli/task_selector.go')
-rw-r--r--internal/askcli/task_selector.go2
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"
}