MCPcopy Create free account
hub / github.com/go-task/task / WithTaskSorter

Function WithTaskSorter

executor.go:545–547  ·  view source on GitHub ↗

WithTaskSorter sets the sorter that the [Executor] will use to sort tasks. By default, the sorter is set to sort tasks alphabetically, but with tasks with no namespace (in the root Taskfile) first.

(sorter sort.Sorter)

Source from the content-addressed store, hash-verified

543// default, the sorter is set to sort tasks alphabetically, but with tasks with
544// no namespace (in the root Taskfile) first.
545func WithTaskSorter(sorter sort.Sorter) ExecutorOption {
546 return &taskSorterOption{sorter}
547}
548
549type taskSorterOption struct {
550 sorter sort.Sorter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…