cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCfg

type AppCfg struct {
	// Env vars.
	EnvVarsHost      types.EnvVars
	EnvVarsAWS       types.EnvVars
	EnvVarsTerraform types.EnvVars
	EnvVarsDotEnd    types.EnvVars
	// FS related configuration.
	CurrentDir string
	HomeDir    string
	IsGitDir   bool
}

type Builder

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

func NewClient

func NewClient(ctx context.Context, options IniDefaultFlagOptions) *Builder

func (*Builder) Build

func (b *Builder) Build(optFns ...func(*IniDefaultFlagOptions) error) (*Client, error)

func (*Builder) WithDotEnvFile

func (b *Builder) WithDotEnvFile() InitOptionsFunc

func (*Builder) WithLogger

func (b *Builder) WithLogger() InitOptionsFunc

func (*Builder) WithPrintedHostEnvVars

func (b *Builder) WithPrintedHostEnvVars() InitOptionsFunc

func (*Builder) WithScannedAWSEnvVarsFromHost

func (b *Builder) WithScannedAWSEnvVarsFromHost() InitOptionsFunc

func (*Builder) WithScannedEnvVarsFromHost

func (b *Builder) WithScannedEnvVarsFromHost() InitOptionsFunc

func (*Builder) WithScannedTerraformEnvVarsFromHost

func (b *Builder) WithScannedTerraformEnvVarsFromHost() InitOptionsFunc

type Client

type Client struct {
	App    *AppCfg
	Logger o11y.LoggerInterface
	Ctx    context.Context
	UX     *UX
}

func New

func New() (*Client, error)

type IniDefaultFlagOptions

type IniDefaultFlagOptions struct {
	DotEnvFile                   string
	ShowEnvVars                  bool
	ScanEnvVarsFromHost          bool
	ScanAWSEnvVarsFromHost       bool
	ScanTerraformEnvVarsFromHost bool
}

IniDefaultFlagOptions represents the default flag options. This is used to initialize the CLI client.

type InitOptionsFunc

type InitOptionsFunc func(*IniDefaultFlagOptions) error

type UX

type UX struct {
	Titles   tui.TitleWriter
	Messages tui.MessageWriter
}

Jump to

Keyboard shortcuts

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