sort

package
v3.37.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlphaNumeric

type AlphaNumeric struct{}

func (*AlphaNumeric) Sort

func (s *AlphaNumeric) Sort(tasks []*ast.Task)

Tasks that are not namespaced should be listed before tasks that are. We detect this by searching for a ':' in the task name.

type AlphaNumericWithRootTasksFirst

type AlphaNumericWithRootTasksFirst struct{}

func (*AlphaNumericWithRootTasksFirst) Sort

func (s *AlphaNumericWithRootTasksFirst) Sort(tasks []*ast.Task)

Tasks that are not namespaced should be listed before tasks that are. We detect this by searching for a ':' in the task name.

type Noop

type Noop struct{}

func (*Noop) Sort

func (s *Noop) Sort(tasks []*ast.Task)

type TaskSorter

type TaskSorter interface {
	Sort([]*ast.Task)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL