app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 12 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()
	Info()
}

func NewApp

func NewApp(options ...Option) App

type Option

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

Option configures an App.

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 WithProvidersBuilder

func WithProvidersBuilder(builder providers.Builder) Option

WithProvidersBuilder sets the builder method for the list of providers.

func WithTerminal

func WithTerminal(t ui.Terminal) Option

WithTerminal sets the terminal for the App.

Jump to

Keyboard shortcuts

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