commandoptions

package
v0.0.0-...-cc35533 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIopts

func CLIopts(c *cli.Context, have map[string]Cred, need map[string]string)

func CommandFlags

func CommandFlags(f func() []cli.Flag, keys []string) []cli.Flag

CommandFlags returns the flags for a given command. It takes as a parameter a function for returning flags specific to that command, and then appends those flags with flags that are valid for all commands.

func CompleteFlags

func CompleteFlags(flags []cli.Flag)

CompleteFlags returns the possible flags for bash completion.

func ConfigFile

func ConfigFile(c *cli.Context, have map[string]Cred, need map[string]string) error

func GlobalFlags

func GlobalFlags() []cli.Flag

GlobalFlags returns the flags that can be used after `rack` in a command, such as output flags and authentication flags.

func ProfileSection

func ProfileSection(profile string) (*ini.Section, error)

Types

type Cred

type Cred struct {
	Value string
	From  string
}

Jump to

Keyboard shortcuts

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