Documentation
¶
Index ¶
- func ApplyConfig(cfg *config.Config, baseDir string) error
- func CleanupOrphanedState() error
- func ExecuteOnLeaveHook() error
- func ExecuteScript(scriptName, scriptContent string, baseDir string, args ...string) error
- func ExportForShell(cfg *config.Config, baseDir string, shellType string) string
- func GetActiveEnvironmentInfo() (string, bool)
- func HasSavedState() bool
- func RestoreState() error
- func SaveState(state *State) error
- func SaveStateWithHook(state *State, directory string, onLeaveHook string) error
- type AliasDiff
- type ConfigDiff
- type DiffType
- type EnvDiff
- type ScriptDiff
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupOrphanedState ¶
func CleanupOrphanedState() error
func ExecuteOnLeaveHook ¶
func ExecuteOnLeaveHook() error
func ExecuteScript ¶
func ExportForShell ¶
func HasSavedState ¶
func HasSavedState() bool
func RestoreState ¶
func RestoreState() error
Types ¶
type ConfigDiff ¶
type ConfigDiff struct {
Environment []EnvDiff
Aliases []AliasDiff
Scripts []ScriptDiff
}
func GenerateDiff ¶
func GenerateDiff(cfg *config.Config, baseDir string) (*ConfigDiff, error)
func (*ConfigDiff) Format ¶
func (d *ConfigDiff) Format() string
type ScriptDiff ¶
Click to show internal directories.
Click to hide internal directories.