suggestion

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(slice []string, val string) (int, bool)

Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false.

func SubcommandsRequiredWithSuggestions

func SubcommandsRequiredWithSuggestions(cmd *cobra.Command, args []string) error

SubcommandsRequiredWithSuggestions will ensure we have a subcommand provided by the user and augments it with suggestion for commands, alias and help on root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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