flags

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(opts *Options) error

Parse parses flags into give Option.

Types

type LogLevel

type LogLevel struct {
	logrus.Level
}

LogLevel is a wrapper for logger log level.

func (*LogLevel) MarshalFlag

func (l *LogLevel) MarshalFlag() (string, error)

MarshalFlag is the go-flags Value MarshalFlag implementation for LogLevel.

func (*LogLevel) UnmarshalFlag

func (l *LogLevel) UnmarshalFlag(arg string) error

UnmarshalFlag is the go-flags Value UnmarshalFlag implementation for LogLevel.

type Options

type Options struct {
	DryRun       bool     `long:"dry-run" short:"d" description:"Don't render any markdown file, just print in the console."`
	LogLevel     LogLevel `` /* 150-byte string literal not displayed */
	TemplateFile string   `` /* 136-byte string literal not displayed */
	Positional   struct {
		Directory string `description:"Kapitan project directory." default:"."`
	} `positional-args:"yes"`
}

Options wraps all flags.

Jump to

Keyboard shortcuts

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