Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PathUndo ¶
type PathUndo struct { Env map[string]string // Environment vars to restore Path map[string]bool // Paths to remove from PATH }
PathUndo describes the actions to undo for a single path
type Session ¶
Session describes an envy session
func (*Session) PathUndoList ¶
func (s *Session) PathUndoList() PathUndoList
PathUndoList returns a list of all the current PathUndo instances, sorted by path ToUndoFor returns a list of action to undo for a new working dir, and removes the items from the session.
func (*Session) ToUndoFor ¶
func (s *Session) ToUndoFor(p string) PathUndoList
ToUndoFor returns a list of action to undo for a new working dir, and removes the items from the session.
Click to show internal directories.
Click to hide internal directories.