helper

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SHELL_SCRIPTS = map[string]fileMap{
	"bash": {
		Key:  "bash_profile.sh",
		Path: "~/.bash_profile",
	},
	"zsh": {
		Key:  "zshrc.sh",
		Path: "~/.zshrc",
	},
	"fish": {
		Key:  "aws-sso.fish",
		Path: getFishScript(),
	},
}

map of shells to their file we edit by default

Functions

func ConfigFiles

func ConfigFiles() []string

ConfigFiles returns a list of all the config files we might edit

func InstallHelper

func InstallHelper(shell string, path string) error

InstallHelper installs any helper code into our shell startup script(s)

func SetLogger

func SetLogger(l *logrus.Logger)

func UninstallHelper

func UninstallHelper(shell string, path string) error

UninstallHelper removes any helper code from our shell startup script(s)

Types

This section is empty.

Jump to

Keyboard shortcuts

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