cmd

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 32 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"
	ACCOUNT_REGION = "region"
	ACCOUNT_ID     = "id"
	ROLE_ARN_KEY   = "role_arn"
)
View Source
const (
	ACTIVE_TOKEN_ID   = "active"
	INACTIVE_TOKEN_ID = "inactive"
)

Variables

View Source
var (
	ErrNoAccountFound = errors.New("no account found")
	ErrAccountsToFix  = errors.New("accounts need to be fixed")
)
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")
)

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 Account added in v1.2.0

type Account struct {
	ID      string
	Region  string
	Private bool
	Token   string
}

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