Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContextHome = "home" ContextRoot = "root" )
Variables ¶
View Source
var ErrNoHome = errors.New("HOME is not set")
Functions ¶
func NormalizeContext ¶
Types ¶
type ActiveSelection ¶
type ActiveSelection struct {
Registry state.Registry
Source state.Source
Scope TargetScope
}
func SelectActive ¶
func SelectActive(options SelectionOptions) (ActiveSelection, error)
type SelectionOptions ¶
type TargetScope ¶
func NewTargetScope ¶
func NewTargetScope(context string, requireHome bool) (TargetScope, error)
func (TargetScope) PhysicalPath ¶
func (s TargetScope) PhysicalPath(logicalPath string) string
Click to show internal directories.
Click to hide internal directories.