lib

package
v0.0.0-...-4c98b68 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProjectSigil    = "%%"
	ColumnSigil     = "%"
	FromColumnSigil = "^%"
	SearchSigil     = "/"
	MoreSuffix      = "+"
)

Functions

func CliSigilCompletions

func CliSigilCompletions(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func PickColumn

func PickColumn(label string, project types.Project, columnFilter *string) (*types.Column, error)

func PickProject

func PickProject(label string, projectFilter *string) (*types.Project, error)

func PickTask

func PickTask(label string, project types.Project, column types.Column, filter *string) (*types.Task, error)

func ReadConfig

func ReadConfig() error

func SelectColumn

func SelectColumn(label string, columns []*types.Column, autoSelect bool) (*types.Column, error)

func SelectProject

func SelectProject(label string, projects []*types.Project, autoSelect bool) (*types.Project, error)

func SelectTask

func SelectTask(label string, tasks []*types.Task, autoSelect bool) (*types.Task, error)

func StripSigil

func StripSigil(s string) (string, string)

func WriteConfig

func WriteConfig() error

Types

type CommonArgs

type CommonArgs struct {
	Project    *string
	Column     *string
	FromColumn *string
	Search     *string
	More       bool
	Args       []string
}

func ParseCommonArgs

func ParseCommonArgs(args []string) CommonArgs

Jump to

Keyboard shortcuts

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