shell

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidEnvVar

func ValidEnvVar(key string) bool

ValidEnvVar checks if an environment variable name is valid. https://stackoverflow.com/questions/2821043/

Types

type Shell

type Shell interface {
	Quote(s string) string
	SetEnv(key, value string)
	SetPath(path *env.Path)
}

Shell defines the interface that shell support modules must implement.

func Bash

func Bash() Shell

Bash returns a Shell interface for the bash and zsh shells.

func Fish

func Fish() Shell

Fish returns a Shell interface for the fish shell.

Jump to

Keyboard shortcuts

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