Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.1.0"
Version is the current version of gitch
Functions ¶
Types ¶
type AutoSwitchResult ¶ added in v1.0.0
type AutoSwitchResult struct {
Switched bool
FromIdentity string
ToIdentity string
MatchedRule *rules.Rule
SkippedReason string
}
AutoSwitchResult contains the result of an auto-switch attempt
func TryAutoSwitch ¶ added in v1.0.0
func TryAutoSwitch(cfg *config.Config) (*AutoSwitchResult, error)
TryAutoSwitch checks if identity should switch based on rules and performs the switch Returns result indicating what happened (switched, already correct, no rule, etc.)
Click to show internal directories.
Click to hide internal directories.