cmd

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1.0"

Version is the current version of gitch

Functions

func Execute

func Execute() error

Execute runs the root command

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.)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL