install

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package install provides the TUI for installation tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecommendedInstallDir

func GetRecommendedInstallDir() string

GetRecommendedInstallDir returns a recommended installation directory.

func InstallTasks

func InstallTasks(paths *Paths) []common.Task

InstallTasks returns all installation tasks.

func NeedsSudo

func NeedsSudo(installDir string) bool

NeedsSudo checks if the installation directory requires elevated privileges.

func UninstallTasks

func UninstallTasks(paths *Paths) []common.Task

UninstallTasks returns all uninstallation tasks.

Types

type Paths

type Paths struct {
	Binary     string // /usr/local/bin/gitflow-toolkit
	InstallDir string // /usr/local/bin
}

Paths holds all installation paths.

func NewPaths

func NewPaths(installDir string) (*Paths, error)

NewPaths creates installation paths.

func (*Paths) SymlinkPaths

func (p *Paths) SymlinkPaths() []string

SymlinkPaths returns all symlink paths.

Jump to

Keyboard shortcuts

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