autocomplete

package
v0.0.0-...-129dccd Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(funcs ...Function) cli.BashCompleteFunc

New returns a autocompletion functions that resolves arguments in order.

func Slug

func Slug(cfg grit.Config, idx *index.Index, c *cli.Context, arg string) []string

Slug provides auto-completion for indexed slugs.

Types

type Function

type Function func(
	cfg grit.Config,
	idx *index.Index,
	c *cli.Context,
	arg string,
) []string

Function provides auto-completion for a specific argument.

Jump to

Keyboard shortcuts

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