cmd

package
v0.0.0-...-5fe617f Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXECUTABLE_NOT_DEFINED = "Executable not defined"
)

Variables

This section is empty.

Functions

func AddCompletionCmd

func AddCompletionCmd(rootCmd *cobra.Command, appCtx context.LauncherContext)

func AddConfigCmd

func AddConfigCmd(rootCmd *cobra.Command, appCtx context.LauncherContext)

func AddLoginCmd

func AddLoginCmd(rootCmd *cobra.Command, appCtx context.LauncherContext, loginHook command.Command)

func AddPackageCmd

func AddPackageCmd(rootCmd *cobra.Command, appCtx context.LauncherContext)

func AddRemoteCmd

func AddRemoteCmd(rootCmd *cobra.Command, appCtx context.LauncherContext, back backend.Backend)

func AddRenameCmd

func AddRenameCmd(rootCmd *cobra.Command, appCtx context.LauncherContext, back backend.Backend)

func AddUpdateCmd

func AddUpdateCmd(rootCmd *cobra.Command, appCtx context.LauncherContext, localRepo repository.PackageRepository)

func AddVersionCmd

func AddVersionCmd(rootCmd *cobra.Command, appCtx context.LauncherContext)

func Execute

func Execute()

We have to add the ctrl+C

func InitCommands

func InitCommands(appName string, appLongName string, version string, buildNum string)

Types

type ConfigFlags

type ConfigFlags struct {
	Json bool
}

type LoginFlags

type LoginFlags struct {
	// contains filtered or unexported fields
}

type PackageFlags

type PackageFlags struct {
	// contains filtered or unexported fields
}

type RenameFlags

type RenameFlags struct {
	// contains filtered or unexported fields
}

type UpdateFlags

type UpdateFlags struct {
	Package bool
	Self    bool
	Timeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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