install

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package install provides the full-screen interactive gitswitch setup wizard.

Launches a Bubble Tea TUI when called from a real terminal with no flags. Follows the same clean visual style as the main gitswitch TUI — rounded borders, purple/green palette, no arcade effects here.

Non-interactive paths (piped stdin, --yes, --shell flag) bypass the TUI and apply defaults immediately.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintSummary

func PrintSummary(w io.Writer, shellResult string, shellDone, httpsDone, ghWrapperDone bool, httpsErr error)

PrintSummary prints the post-install result (plain text, outside TUI).

Types

type Config

type Config struct {
	ShellOverride string // non-empty → non-interactive
	Yes           bool   // --yes → accept all defaults
	HTTPSDefault  bool   // default for HTTPS step
}

Config controls wizard behaviour.

type Options

type Options struct {
	Shell            shell.Shell
	Framework        shell.Framework
	InstallShell     bool
	InstallHTTPS     bool
	InstallGHWrapper bool
}

Options carries the resolved choices after a wizard run.

func Run

func Run(cfg Config) (Options, error)

Run runs the wizard and returns the user's choices.

Jump to

Keyboard shortcuts

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