MCPcopy Create free account
hub / github.com/compozy/agh / parseOptionalChangedTaskPriority

Function parseOptionalChangedTaskPriority

internal/cli/task.go:3052–3057  ·  view source on GitHub ↗
(cmd *cobra.Command, raw string)

Source from the content-addressed store, hash-verified

3050}
3051
3052func parseOptionalChangedTaskPriority(cmd *cobra.Command, raw string) (taskpkg.Priority, error) {
3053 if !cmd.Flags().Changed("priority") {
3054 return "", nil
3055 }
3056 return parseOptionalTaskPriority(raw)
3057}
3058
3059func parseOptionalTaskPriority(raw string) (taskpkg.Priority, error) {
3060 trimmed := strings.ToLower(strings.TrimSpace(raw))

Callers 1

buildTaskCreateRequestFunction · 0.85

Calls 1

Tested by

no test coverage detected