cmd

package
v2.0.0-rc1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AnalyticsCommandNameAdd = "add"
View Source
const AnalyticsCommandNameExec = "exec"

Variables

View Source
var (
	FlagOktaUsername     string
	FlagOktaDomain       string
	FlagOktaAccountAlias string
	FlagCredsNoValidate  bool
)
View Source
var (
	FlagKeyringBackend string
	FlagVerbosity      int
	FlagAWSRegion      string
)
View Source
var (
	Analytics analytics.Client
	Version   string
)
View Source
var RootCmd = &cobra.Command{
	Use:          "aws-okta",
	Short:        "aws-okta allows you to authenticate with AWS using your okta credentials",
	SilenceUsage: true,

	SilenceErrors:     true,
	PersistentPreRun:  prerun,
	PersistentPostRun: postrun,
}

Functions

func Execute

func Execute(version string, writeKey string)

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ErrBadArgCount

type ErrBadArgCount struct {
	Actual   int
	Expected int
}

func (*ErrBadArgCount) Error

func (e *ErrBadArgCount) Error() string

Directories

Path Synopsis
TODO: overhaul
TODO: overhaul

Jump to

Keyboard shortcuts

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