suggest

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package suggest provides fuzzy matching for CLI flag and command suggestions using Levenshtein distance.

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