cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigCommand

func NewConfigCommand(conf interface{}, envPrefix string, exportFormat ConfigFileExportFormat) *cobra.Command

NewConfigCommand initialize a cobra config command tree

Types

type ConfigFileExportFormat

type ConfigFileExportFormat int

ConfigFileExportFormat controls format for configuration to file export

const (
	// Hcl export config as HCL file
	Hcl ConfigFileExportFormat = iota
	// Toml export config as Toml file
	Toml
	// Yaml export config as Yaml file. default
	Yaml
	// None does not export config as file
	None
)

Jump to

Keyboard shortcuts

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