commands

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShimsFileDir

func GetShimsFileDir(installFilePath string) string

Types

type Global

type Global struct {
	InstallDirectoryPath    string
	ShowVersionFormatSimple string
	TargetBinaryFileName    string
}

func NewGlobal

func NewGlobal(parentCmd *cobra.Command, installDirectoryPath string, ShowVersionFormatSimple string, TargetBinaryFileName string) Global

func (*Global) RunE

func (i *Global) RunE(cmd *cobra.Command, args []string) error

type Init

type Init struct {
	InstallDirectoryPath string
	TargetBinaryFileName string
}

func NewInit

func NewInit(parentCmd *cobra.Command, installDirectoryPath string, TargetBinaryFileName string) Init

func (*Init) RunE

func (i *Init) RunE(cmd *cobra.Command, args []string) error

type Install

type Install struct {
	InstallDirectoryPath    string
	ShowVersionFormatSimple string
	TargetUrl               string
	// contains filtered or unexported fields
}

func NewInstall

func NewInstall(parentCmd *cobra.Command, installDirectoryPath string, ShowVersionFormatSimple string, TargetBinaryFileName string) Install

func (Install) RunE

func (c Install) RunE(cmd *cobra.Command, args []string) error

type Local

type Local struct {
	InstallDirectoryPath    string
	ShowVersionFormatSimple string
	TargetBinaryFileName    string
}

func NewLocal

func NewLocal(parentCmd *cobra.Command, installDirectoryPath string, ShowVersionFormatSimple string, TargetBinaryFileName string) Local

func (*Local) RunE

func (i *Local) RunE(cmd *cobra.Command, args []string) error

type Version

type Version struct {
	GlobalVersionFilePath   string
	ShowVersionFormatSimple string
	TargetBinaryFileName    string
}

func NewVersion

func NewVersion(parentCmd *cobra.Command, installDirectoryPath string, ShowVersionFormatSimple string, TargetBinaryFileName string) Version

func (*Version) RunE

func (i *Version) RunE(cmd *cobra.Command, args []string) error

type Versions

type Versions struct {
	InstallDirectoryPath    string
	ShowVersionFormatSimple string
	TargetBinaryFileName    string
}

func NewVersions

func NewVersions(parentCmd *cobra.Command, installDirectoryPath string, ShowVersionFormatSimple string, TargetBinaryFileName string) Versions

func (*Versions) RunE

func (i *Versions) RunE(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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