cli

package
v0.0.0-...-03a9efe Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedOutputFormats = []string{"table", "json", "json_pretty", "yaml"}

Functions

func NewContext

func NewContext() context.Context

func NewEncryptionKey

func NewEncryptionKey(backup bool) (string, error)

Types

type Options

type Options struct {
	Migrate        bool
	Verbose        bool
	InitRegistry   bool
	NonInteractive bool
	OutputFormat   string

	Registry *persistency.Registry //will be initialized during CLI bootstrap in main.go
	// contains filtered or unexported fields
}

func (*Options) InitApplicationRegistry

func (o *Options) InitApplicationRegistry(forceInitialization bool) error

func (*Options) Logger

func (o *Options) Logger() *zap.SugaredLogger

func (*Options) String

func (o *Options) String() string

func (*Options) Validate

func (o *Options) Validate() error

type OutputFormatter

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

func NewOutputFormatter

func NewOutputFormatter(format string) (*OutputFormatter, error)

func (*OutputFormatter) AddRow

func (of *OutputFormatter) AddRow(data ...interface{}) error

func (*OutputFormatter) Header

func (of *OutputFormatter) Header(header ...string) error

func (*OutputFormatter) Output

func (of *OutputFormatter) Output(writer io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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