github.com/go-task/task/v3/internal/sort
No package summary is available.
Package
Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Types
Sorter
A Sorter is any function that sorts a set of tasks.
| Field name | Field type | Comment |
|---|---|---|
| type |
|
No comment on field. |
Functions
func AlphaNumeric
AlphaNumeric sorts the JSON output so that tasks are in alpha numeric order by task name.
Uses: slices.Sort.func AlphaNumericWithRootTasksFirst
AlphaNumericWithRootTasksFirst sorts the JSON output so that tasks are in alpha numeric order by task name. It will also ensure that tasks that are not namespaced will be listed before tasks that are. We detect this by searching for a ':' in the task name.
Uses: sort.Slice, strings.Contains.func NoSort
NoSort leaves the tasks in the order they are defined.
Tests
Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 3. Benchmarks: 0.