app

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

package app is the main entrypoint into the application, responsible for configuring and starting the application, services, dependency injection, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v0.5.0

type App struct {
	Logger  *logging.Logger
	Cleanup func()

	Modules    *module.Service
	Workspaces *workspace.Service
	Plans      *plan.Service
	States     *state.Service
	Tasks      *task.Service
}

func New added in v0.5.0

func New(cfg Config) (*App, error)

New starts the application, constructing services, starting daemons and subscribing to events. The returned app is used for constructing the TUI and relaying events. The app's cleanup function should be called when finished.

type Config added in v0.5.0

type Config struct {
	Program                 string
	MaxTasks                int
	PluginCache             bool
	FirstPage               string
	Debug                   bool
	DisableReloadAfterApply bool
	Workdir                 internal.Workdir
	DataDir                 string
	Envs                    []string
	Args                    []string
	Terragrunt              bool
	Logging                 logging.Options

	Version bool
}

func Parse added in v0.5.0

func Parse(stderr io.Writer, args []string) (Config, error)

set config in order of precedence: 1. flags > 2. env vars > 3. config file

Jump to

Keyboard shortcuts

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