common

package
v1.0.0-beta.26 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPermissionDenied = errors.New("permission denied, try again with sudo")
)

Functions

func ConfirmationPrompt

func ConfirmationPrompt(prompt string) bool

ConfirmationPrompt prompts the user for a yes/no answer and returns true for 'y', false for 'n'.

func LoadEngineEnvironment

func LoadEngineEnvironment(ctx *Context) error

func StartProgressSpinner

func StartProgressSpinner(prefix string) (stop func())

Types

type Context

type Context struct {
	EnginesDir string
	Verbose    bool
	Cache      storage.Cache
	Config     storage.Config
}

Jump to

Keyboard shortcuts

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