app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEmbeddedScripts added in v0.0.2

func SetEmbeddedScripts(app *App, updateScript, uninstallScript string)

SetEmbeddedScripts sets the embedded scripts for self-management commands.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the main app.

func New

func New(repoDir string, version string, verbose, dryRun bool) *App

New creates a new App instance.

func (*App) IsInternalCall

func (a *App) IsInternalCall() bool

IsInternalCall checks if the hook is being called internally (either via test or zsh script).

func (*App) Run

func (a *App) Run(args []string) error

Run executes the main app logic.

type GitHelper

type GitHelper interface {
	GetCurrentGitRef() (string, error)
	GetRepoGitDir() (string, error)

	GitRun(subCmd string, args ...string) error
	GitOutput(subCmd string, args ...string) (string, error)
}

GitHelper provides methods for reading git references.

Jump to

Keyboard shortcuts

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