suggest

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonFlagAliases = map[string]string{

	"note":  "--description, -d",
	"notes": "--description, -d",
	"msg":   "--description, -d",

	"comment":  "--reason, -m",
	"comments": "--reason, -m",
	"message":  "--reason, -m",

	"id":       "--issue",
	"issue-id": "--issue",
	"task":     "--issue",

	"force":   "(not supported - use confirmation prompt)",
	"confirm": "(not supported - use confirmation prompt)",
	"yes":     "(not supported - use confirmation prompt)",
	"y":       "(not supported - use confirmation prompt)",

	"version": "use: td version",
	"v":       "use: td version",

	"state": "--status, -s",

	"review": "use: td review <issue-id> (after td handoff)",
}

CommonFlagAliases maps commonly attempted flags to their correct names

Functions

func Flag

func Flag(unknown string, validFlags []string) []string

Flag finds similar flags from a list of valid flags Returns suggestions sorted by similarity (best first)

func GetFlagHint

func GetFlagHint(flag string) string

GetFlagHint returns a hint for a commonly misused flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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