cmd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2022 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2022 Louis Lefebvre <louislefebvre1999@gmail.com>

Copyright © 2023 Louis Lefebvre <louislefebvre1999@gmail.com>

Index

Constants

View Source
const (
	ACCOUNT_GROUP = "account"
	ROLE_ARN_KEY  = "role_arn"
)
View Source
const (
	ACTIVE_TOKEN_ID   = "active"
	INACTIVE_TOKEN_ID = "inactive"
)

Variables

View Source
var (
	ErrKeyDoesNotExist     = errors.New("the provided key doesn't exist")
	ErrClusterDoesNotExist = errors.New("the provided cluster does not exist in this environment")
	ErrClustersDoNotExist  = errors.New("no clusters in this environment")
)
View Source
var (
	ErrNoAccountFound = errors.New("no account found")
)

Functions

func BindConfigValue

func BindConfigValue(name string, flag *pflag.Flag)

BindConfigValue will bind the Viper config value to the provided pflag

func Execute

func Execute()

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

Types

type ConfigValue

type ConfigValue struct {
	Name        string
	Description string
}

func (*ConfigValue) String

func (c *ConfigValue) String() string

Jump to

Keyboard shortcuts

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