flags

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

flags package is a helper package for processing and interactive command line flags

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetBool

func MustGetBool(flagName string, flags *pflag.FlagSet) bool

MustGetBool attempts to get a boolean flag from the provided flag set or panic

func MustGetDefinedString

func MustGetDefinedString(flagName string, flags *pflag.FlagSet) string

MustGetDefinedString attempts to get a non-empty string flag from the provided flag set or panic

func MustGetString

func MustGetString(flagName string, flags *pflag.FlagSet) string

MustGetString attempts to get a string flag from the provided flag set or panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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