credenv

package module
v0.0.0-...-ee9f87f Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 5 Imported by: 0

README

credenv Build Status GoDoc

Add your cloud credentials to your environment in a single command

Installation

go get -u github.com/charliekenney23/credenv/cmd/credenv

Usage

credenv SOURCE
View your credential environment variables for a given source
credenv aws
# sources credentials from ~/.aws/credentials and outputs:
# export AWS_ACCESS_KEY_ID='XXXXXXXXXXXXXXXX'
# export AWS_SECRET_ACCESS_KEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Set your credential environment variables for a given source
eval `credenv aws`

Supported Sources



© 2019 Charles Kenney

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit string
	Version   string
)

Version values will be added at build time

Functions

func Command

func Command(c *cli.Context)

Command handles user input.

Types

type Source

type Source interface {
	GetEnvironment(c *cli.Context) env.Environment
}

Source represents a environment credentials source.

Directories

Path Synopsis
cmd
pkg
env
ui

Jump to

Keyboard shortcuts

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