placeholder

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringFlag

type StringFlag struct {
	cli.StringFlag
	Placeholder string
	Required    bool
}

StringFlag represents a flag which satisfies the github.com/urfave/cli.Flag interface while also supporting the concept of a default value and required flag.

func New

func New(name, placeholder, usage, value, envvar string, required bool) StringFlag

New returns a new StringFlag using the provided information

func (StringFlag) String

func (sf StringFlag) String() string

String returns a string for explaining this flag, used by github.com/urfave/cli to print out help text.

Jump to

Keyboard shortcuts

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