rclone: github.com/rclone/rclone/fs/config/flags Index | Files

package flags

import "github.com/rclone/rclone/fs/config/flags"

Package flags contains enhanced versions of spf13/pflag flag routines which will read from the environment also.

Index

Package Files

flags.go

func BoolP Uses

func BoolP(name, shorthand string, value bool, usage string) (out *bool)

BoolP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.BoolP

func BoolVarP Uses

func BoolVarP(flags *pflag.FlagSet, p *bool, name, shorthand string, value bool, usage string)

BoolVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.BoolVarP

func CountP Uses

func CountP(name, shorthand string, usage string) (out *int)

CountP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.CountP

func CountVarP Uses

func CountVarP(flags *pflag.FlagSet, p *int, name, shorthand string, usage string)

CountVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.CountVarP

func DurationP Uses

func DurationP(name, shorthand string, value time.Duration, usage string) (out *time.Duration)

DurationP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.DurationP

func DurationVarP Uses

func DurationVarP(flags *pflag.FlagSet, p *time.Duration, name, shorthand string, value time.Duration, usage string)

DurationVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.DurationVarP

func FVarP Uses

func FVarP(flags *pflag.FlagSet, value pflag.Value, name, shorthand, usage string)

FVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.VarP

func Float64P Uses

func Float64P(name, shorthand string, value float64, usage string) (out *float64)

Float64P defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.Float64P

func Float64VarP Uses

func Float64VarP(flags *pflag.FlagSet, p *float64, name, shorthand string, value float64, usage string)

Float64VarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.Float64VarP

func Int64P Uses

func Int64P(name, shorthand string, value int64, usage string) (out *int64)

Int64P defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.IntP

func Int64VarP Uses

func Int64VarP(flags *pflag.FlagSet, p *int64, name, shorthand string, value int64, usage string)

Int64VarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.Int64VarP

func IntP Uses

func IntP(name, shorthand string, value int, usage string) (out *int)

IntP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.IntP

func IntVarP Uses

func IntVarP(flags *pflag.FlagSet, p *int, name, shorthand string, value int, usage string)

IntVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.IntVarP

func StringArrayP Uses

func StringArrayP(name, shorthand string, value []string, usage string) (out *[]string)

StringArrayP defines a flag which can be overridden by an environment variable

It sets one value only - command line flags can be used to set more.

It is a thin wrapper around pflag.StringArrayP

func StringArrayVarP Uses

func StringArrayVarP(flags *pflag.FlagSet, p *[]string, name, shorthand string, value []string, usage string)

StringArrayVarP defines a flag which can be overridden by an environment variable

It sets one value only - command line flags can be used to set more.

It is a thin wrapper around pflag.StringArrayVarP

func StringP Uses

func StringP(name, shorthand string, value string, usage string) (out *string)

StringP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.StringP

func StringVarP Uses

func StringVarP(flags *pflag.FlagSet, p *string, name, shorthand string, value string, usage string)

StringVarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.StringVarP

func Uint32VarP Uses

func Uint32VarP(flags *pflag.FlagSet, p *uint32, name, shorthand string, value uint32, usage string)

Uint32VarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.Uint32VarP

func VarP Uses

func VarP(value pflag.Value, name, shorthand, usage string)

VarP defines a flag which can be overridden by an environment variable

It is a thin wrapper around pflag.VarP

Package flags imports 5 packages (graph) and is imported by 53 packages. Updated 2019-10-14. Refresh now. Tools for package owners.