config

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Project     string `json:"project" pflag:",Specifies the project to work on."`
	Domain      string `json:"domain" pflag:",Specifies the domain to work on."`
	Output      string `json:"output" pflag:",Specifies the output type."`
	Interactive bool   `json:"interactive" pflag:",Set this to trigger bubbletea interface."`
}

Config hold configration for flytectl flag

func GetConfig

func GetConfig() *Config

GetConfig will return the config

func (Config) MustOutputFormat

func (cfg Config) MustOutputFormat() printer.OutputFormat

MustOutputFormat will validate the supported output formate and return output formate

func (Config) OutputFormat

func (cfg Config) OutputFormat() (printer.OutputFormat, error)

OutputFormat will return output formate

Jump to

Keyboard shortcuts

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