app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App represents the main app.

func New

func New(repoDir 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)
	ValidateGitRepo() 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