Documentation
¶
Overview ¶
Package cli wires the git-stack commands.
Index ¶
Constants ¶
View Source
const (
// RepoURL is git-stack's home page.
RepoURL = "https://github.com/mhvelplund/git-stack"
)
Variables ¶
View Source
var Version = "dev"
Version is set at build time with -ldflags.
Functions ¶
Types ¶
type App ¶
type App struct {
Dir string
In io.Reader
Out, Err io.Writer
Interactive bool // stdin and stderr are terminals: editors and prompts use those
OutIsTTY bool
ErrIsTTY bool
Now func() time.Time
// Sleep waits between polls of the host (tests make it instant).
Sleep func(time.Duration)
// RunTUI runs a full-screen editor (tests drive it with scripted keys).
RunTUI func(m tea.Model) (tea.Model, error)
// OpenURL opens a browser (tests capture the URL).
OpenURL func(url string) error
// Provider is the --provider flag: a provider name, "none", or "" to use
// git config or detect it from the remote URL.
Provider string
// NewForge overrides how forges are built (tests use a fake).
NewForge func(remote string) (*forge.Forge, error)
// contains filtered or unexported fields
}
App is the environment commands run in. Tests construct it directly.
Click to show internal directories.
Click to hide internal directories.