app

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSnippetsAvailable = errors.New("No snippets are available.")

Functions

This section is empty.

Types

type App

type App interface {
	LookupSnippet() model.Snippet
	LookupAndCreatePrintableSnippet() (string, bool)
	LookupAndExecuteSnippet(bool, bool)
	Info()
	AddManager()
	SyncManager()
}

func NewApp

func NewApp(options ...Option) App

type ErrMigrateConfig added in v1.4.0

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

func (ErrMigrateConfig) Error added in v1.4.0

func (e ErrMigrateConfig) Error() string

func (ErrMigrateConfig) Is added in v1.4.0

func (e ErrMigrateConfig) Is(target error) bool

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures an App.

func WithCheckNeedsConfigMigration added in v1.4.0

func WithCheckNeedsConfigMigration(checkNeedsConfigMigration bool) Option

WithCheckNeedsConfigMigration sets if the config file is checked if it is up-to-date.

func WithConfig

func WithConfig(config config.Config) Option

WithConfig sets the config for the App.

func WithConfigService

func WithConfigService(service config.Service) Option

WithConfigService sets the config service for the App.

func WithProvider added in v1.0.0

func WithProvider(builder managers.Provider) Option

WithProvider sets the provider for the list of manager.

func WithTUI added in v1.0.0

func WithTUI(t ui.TUI) Option

WithTUI sets the terminal for the App.

Jump to

Keyboard shortcuts

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