Documentation
¶
Index ¶
- Variables
- func AddCmd(cmdName string, gc GlobalConfig) *cobra.Command
- func AddProfileCmd(gc GlobalConfig) *cobra.Command
- func ConfigDir() string
- func ConfigDirPath() string
- func DoctorCmd(gc GlobalConfig) *cobra.Command
- func ExitWithMsg(code int, msg string)
- func FullStatusCmd(gc GlobalConfig) *cobra.Command
- func GlobalConfigPath() string
- func HomeDir() string
- func LegacyConfigDirPath() string
- func ListProfilesCmd(cmdName string, gc GlobalConfig) *cobra.Command
- func MigrateConfigDir(gc GlobalConfig) *cobra.Command
- func PrettyJson[T any](t T) string
- func RemoveCmd(cmdName string, gc GlobalConfig) *cobra.Command
- func RemoveProfileCmd(gc GlobalConfig) *cobra.Command
- func ResetCmd(gc GlobalConfig) *cobra.Command
- func SaveGlobalConfRaw(gcr GlobalConfigRaw)
- func SetCmd(gc GlobalConfig) *cobra.Command
- func StatusCmd(gc GlobalConfig) *cobra.Command
- func StatusProfileCmd(gc GlobalConfig) *cobra.Command
- func StatusRawCmd(gc GlobalConfig) *cobra.Command
- type DetectedProfile
- type GlobalConfig
- type GlobalConfigRaw
- type Path
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var TestMode = false
Functions ¶
func AddProfileCmd ¶ added in v1.0.14
func AddProfileCmd(gc GlobalConfig) *cobra.Command
func ConfigDirPath ¶
func ConfigDirPath() string
func DoctorCmd ¶ added in v1.0.16
func DoctorCmd(gc GlobalConfig) *cobra.Command
func ExitWithMsg ¶ added in v1.0.13
func FullStatusCmd ¶
func FullStatusCmd(gc GlobalConfig) *cobra.Command
func GlobalConfigPath ¶
func GlobalConfigPath() string
func LegacyConfigDirPath ¶
func LegacyConfigDirPath() string
func ListProfilesCmd ¶
func ListProfilesCmd(cmdName string, gc GlobalConfig) *cobra.Command
func MigrateConfigDir ¶
func MigrateConfigDir(gc GlobalConfig) *cobra.Command
func PrettyJson ¶
func RemoveProfileCmd ¶ added in v1.0.14
func RemoveProfileCmd(gc GlobalConfig) *cobra.Command
func ResetCmd ¶
func ResetCmd(gc GlobalConfig) *cobra.Command
func SaveGlobalConfRaw ¶
func SaveGlobalConfRaw(gcr GlobalConfigRaw)
func SetCmd ¶
func SetCmd(gc GlobalConfig) *cobra.Command
func StatusCmd ¶
func StatusCmd(gc GlobalConfig) *cobra.Command
func StatusProfileCmd ¶
func StatusProfileCmd(gc GlobalConfig) *cobra.Command
func StatusRawCmd ¶
func StatusRawCmd(gc GlobalConfig) *cobra.Command
Types ¶
type DetectedProfile ¶
type GlobalConfig ¶
type GlobalConfig struct {
Paths []Path
}
func LoadGlobalConf ¶
func LoadGlobalConf() GlobalConfig
func (GlobalConfig) ActiveProfileNames ¶
func (g GlobalConfig) ActiveProfileNames() []string
func (GlobalConfig) AllProfilesResolved ¶
func (g GlobalConfig) AllProfilesResolved() bool
func (GlobalConfig) DetectedProfileNames ¶
func (g GlobalConfig) DetectedProfileNames() []string
type GlobalConfigRaw ¶
type GlobalConfigRaw struct {
Paths []string `json:"paths"`
}
func LoadGlobalConfRaw ¶
func LoadGlobalConfRaw() GlobalConfigRaw
type Path ¶
type Path struct {
SrcPath string `json:"srcPath"`
Status Status `json:"status"`
TgtPath *string `json:"tgtPath"`
ResolvedTgt *DetectedProfile `json:"resolvedTgt"`
DetectedProfs []DetectedProfile `json:"detectedProfs"`
}
func (*Path) ActiveProfile ¶ added in v1.0.16
Click to show internal directories.
Click to hide internal directories.