config

package
v0.0.0-prealpha-202304... Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() error

func GetAWSProfile

func GetAWSProfile(cmd *cobra.Command) (string, error)

func GetProfile

func GetProfile(cmd *cobra.Command) (string, error)

func ProfileLookup

func ProfileLookup(profile string) error

func Read

func Read() error

Read config file cprl.yaml

Types

type ConfigFile

type ConfigFile struct {
	Default ProfileBody `yaml:"default"`
}

type ProfileBody

type ProfileBody struct {
	Config   ProfileConfig   `yaml:"config"`
	Services ProfileServices `yaml:"services"`
}

type ProfileConfig

type ProfileConfig struct {
	AWSProfile string `yaml:"aws-profile"`
}

type ProfileServices

type ProfileServices struct {
	CodeCommit ProfileServicesCodeCommit `yaml:"codecommit"`
}

type ProfileServicesCodeCommit

type ProfileServicesCodeCommit struct {
	Repositories []string `yaml:"repositories"`
}

Directories

Path Synopsis
services

Jump to

Keyboard shortcuts

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