sort

package
v3.43.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphaNumeric

func AlphaNumeric(items []string, namespaces []string) []string

AlphaNumeric sorts the JSON output so that tasks are in alpha numeric order by task name.

func AlphaNumericWithRootTasksFirst

func AlphaNumericWithRootTasksFirst(items []string, namespaces []string) []string

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.

func NoSort added in v3.43.0

func NoSort(items []string, namespaces []string) []string

NoSort leaves the tasks in the order they are defined.

Types

type Sorter added in v3.42.0

type Sorter func(items []string, namespaces []string) []string

A Sorter is any function that sorts a set of tasks.

Jump to

Keyboard shortcuts

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