commands

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KusionupEnvFileContent is the content of the kusionup environment file
	KusionupEnvFileContent = `` /* 200-byte string literal not displayed */

	// ProfileFileSourceContent is the content of the kusionup profile file
	ProfileFileSourceContent = `source "$HOME/.kusionup/env"`
)
View Source
const DefaultCustomSourceConfigFilename = "custom_sources.yaml"

Variables

View Source
var (
	ProfileFiles []string
)

Functions

func GetSourceVersionDirName

func GetSourceVersionDirName(source, ver string) string

e.g. kusion-open-v0.2.10, kusion-open-latest

func GetSourceVersionTitle

func GetSourceVersionTitle(source, version string) string

e.g. open@v0.2.10, open@latest

func KusionupBinDir

func KusionupBinDir() string

e.g. /Users/user/.kusionup/bin

func KusionupCurrentBinDir

func KusionupCurrentBinDir() string

e.g. /Users/user/.kusionup/current/bin and /Users/user/.kusionup/current/kclvm/bin

func KusionupCurrentDir

func KusionupCurrentDir() string

e.g. /Users/user/.kusionup/current

func KusionupDir

func KusionupDir(paths ...string) string

e.g. /Users/user/.kusionup

func KusionupEnvFile

func KusionupEnvFile() string

e.g. /Users/user/.kusionup/env

func KusionupSourceVersionDir

func KusionupSourceVersionDir(source, ver string) string

e.g. /Users/user/.kusionup/kusion-open-v0.2.10

func KusionupVersionDir

func KusionupVersionDir(ver string) string

e.g. /Users/user/.kusionup/kusion-open-v0.2.10

func NewCommand

func NewCommand() *cobra.Command

func ParseSourceVersion

func ParseSourceVersion(title string) (source, version string, err error)

e.g. open@v0.2.10 => "open", "v0.2.10"

Types

type CustomSources added in v0.2.15

type CustomSources struct {
	Sources []custom.CustomSource `yaml:"sources,omitempty" json:"sources,omitempty"`
}

CustomSources is a array of custom sources.

Jump to

Keyboard shortcuts

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