uninstaller

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(ctx *ccm.CmdContext) *cobra.Command

NewCmd creates this new command.

Types

type Arguments

type Arguments struct {
	Config string

	InternalPostDispatch bool

	NonInteractive bool

	UseStdin bool
}

Arguments repesents all CLI arguments for the uninstaller.

type Settings

type Settings struct {
	Cwd        string // The current working directory.
	InstallDir string // The install directory.
	CloneDir   string // The release clone dir inside the install dir.
	TempDir    string // The temporary directory inside the install dir.

	PromptCtx prompt.IContext // The prompt context for UI prompts.

	HookTemplateDir string // The chosen hook template directory.

	// Registered Repos loaded from the install dir.
	RegisteredGitDirs hooks.RegisterRepos

	// All repositories Git directories where Githooks run-wrappers have been installed.
	// Bool indicates if it is already registered.
	UninstalledGitDirs UninstallSet

	// LFSAvailable tells if 'git-lfs' is installed.
	LFSAvailable bool
}

Settings are the settings for the installer.

type UISettings

type UISettings struct {

	// A prompt context which enables showing a prompt.
	PromptCtx prompt.IContext
}

UISettings defines user interface settings made by the user over prompts.

type UninstallSet

type UninstallSet = strs.StringSet

UninstallSet is a typedef for tracking uninstalled repos.

Jump to

Keyboard shortcuts

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