cmd

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Overview

Package cmd provides the CLI commands

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