cmd

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderGitHub represents https://github.com
	ProviderGitHub = "github"
	// ProviderGitee represents https://gitee.com
	ProviderGitee = "gitee"
)

Variables

This section is empty.

Functions

func NewRoot

func NewRoot(cxt context.Context) (cmd *cobra.Command)

NewRoot returns the root command

Types

type CompletionFunc added in v0.0.36

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

CompletionFunc is the function for command completion

func ArrayCompletion added in v0.0.36

func ArrayCompletion(array ...string) CompletionFunc

ArrayCompletion return a completion which base on an array

Jump to

Keyboard shortcuts

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