app

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Runner      shell.Runner
	StateLoader terra.StateLoader
}

Options for a thelmaApp

type ThelmaApp

type ThelmaApp interface {
	// Config returns configuration object for this ThelmaApp
	Config() config.Config
	// ShellRunner returns ShellRunner for this ThelmaApp
	ShellRunner() shell.Runner
	// Paths returns Paths for this ThelmaApp
	Paths() paths.Paths
	// Scratch returns the Scratch instance for this ThelmaApp
	Scratch() scratch.Scratch
	// State returns a new terra.State instance for this ThelmaApp
	State() (terra.State, error)
	// Close deletes local resources associated with this ThelmaApp, and should be called once before the program exits.
	Close() error
}

ThelmaApp holds references to global/cross-cutting dependencies for Thelma commands

func New

func New(cfg config.Config, shellRunner shell.Runner, stateLoader terra.StateLoader) (ThelmaApp, error)

New constructs a new ThelmaApp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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