cmd

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 18 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 added in v1.0.4

func GetRootCmd() *cobra.Command

func LatestReleaseVer added in v1.0.6

func LatestReleaseVer() string

Types

type ISelect added in v1.0.6

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,
}

Directories

Path Synopsis
internal
ddl
svc
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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