cmd

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LatestReleaseVerFunc = LatestReleaseVer
View Source
var RunSvc = svc.NewSvc
View Source
var VersionSvc = svc.NewSvc

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetRootCmd

func GetRootCmd() *cobra.Command

func LatestReleaseVer

func LatestReleaseVer() string

Types

type ISelect

type ISelect interface {
	Run() (int, string, error)
	RunCursorAt(cursorPos, scroll int) (int, string, error)
	ScrollPosition() int
}
var Prompt ISelect = &promptui.Select{
	Label:  "Do you want to upgrade?",
	Items:  []string{"Yes", "No"},
	Stdin:  os.Stdin,
	Stdout: os.Stdout,
}

Jump to

Keyboard shortcuts

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