Documentation ¶
Index ¶
- Constants
- Variables
- func GetSourceVersionDirName(source, ver string) string
- func GetSourceVersionTitle(source, version string) string
- func KusionupBinDir() string
- func KusionupCurrentBinDir() string
- func KusionupCurrentDir() string
- func KusionupDir(paths ...string) string
- func KusionupEnvFile() string
- func KusionupSourceVersionDir(source, ver string) string
- func KusionupVersionDir(ver string) string
- func NewCommand() *cobra.Command
- func ParseSourceVersion(title string) (source, version string, err error)
- type CustomSources
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 ¶
e.g. kusion-open-v0.2.10, kusion-open-latest
func GetSourceVersionTitle ¶
e.g. open@v0.2.10, open@latest
func KusionupCurrentBinDir ¶
func KusionupCurrentBinDir() string
e.g. /Users/user/.kusionup/current/bin and /Users/user/.kusionup/current/kclvm/bin
func KusionupSourceVersionDir ¶
e.g. /Users/user/.kusionup/kusion-open-v0.2.10
func KusionupVersionDir ¶
e.g. /Users/user/.kusionup/kusion-open-v0.2.10
func NewCommand ¶
func ParseSourceVersion ¶
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.
Click to show internal directories.
Click to hide internal directories.