flags

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package flags contains general utility of the rostamctl flags

Index

Constants

View Source
const (
	// DefaultLogLevel is the default value if not provided with corresponding flag
	DefaultLogLevel = logrus.WarnLevel

	// DefaultOutputFormat is the default value if not provided with corresponding flag
	DefaultOutputFormat = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalFlags

type GlobalFlags struct {
	LogLevel     string
	OutputFormat string
}

GlobalFlags for the rostamctl command

func (*GlobalFlags) Normalize

func (gf *GlobalFlags) Normalize(cmd *cobra.Command, args []string) error

Normalize checks and normalizes input flags and falls back to default values when needed

Jump to

Keyboard shortcuts

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