tui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultSpinner = spinner.New(spinner.WithSpinner(spinner.MiniDot))
	CheckMark      = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓")
	CrossMark      = lipgloss.NewStyle().Foreground(lipgloss.Color("160")).SetString("⨯")
)

Functions

func NewModel

func NewModel(runner JobRunner, providers []*terraform.Provider) *model

func RunInstaller

func RunInstaller(providers []*terraform.Provider) (err error)

func RunUninstaller

func RunUninstaller(providers []*terraform.Provider) (err error)

Types

type InstallRunner

type InstallRunner struct{}

func (*InstallRunner) RunCmd

func (r *InstallRunner) RunCmd(job ProviderJob) tea.Cmd

func (InstallRunner) String

func (r InstallRunner) String() string

type JobRunner

type JobRunner interface {
	RunCmd(job ProviderJob) tea.Cmd
	String() string
}

func NewRunner

func NewRunner(runner string) (JobRunner, error)

type ProviderJob

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

type UninstallRunner

type UninstallRunner struct{}

func (*UninstallRunner) RunCmd

func (r *UninstallRunner) RunCmd(job ProviderJob) tea.Cmd

func (UninstallRunner) String

func (r UninstallRunner) String() string

Jump to

Keyboard shortcuts

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