package virtualenv
import "github.com/oslokommune/okctl/pkg/virtualenv"
Package virtualenv helps finding the environment variables needed to use a okctl cluster.
Index ¶
Types ¶
type VirtualEnvironment ¶
type VirtualEnvironment struct { Warning string ShellCommand string // contains filtered or unexported fields }
VirtualEnvironment contains environment variables in a virtual environment.
func CreateVirtualEnvironment ¶
func CreateVirtualEnvironment(opts commandlineprompter.CommandLinePromptOpts) (*VirtualEnvironment, error)
CreateVirtualEnvironment returns an environment for running a shell
func (*VirtualEnvironment) Environ ¶
func (v *VirtualEnvironment) Environ() []string
Environ returns all environment variables in the virtual environment, on the form []string { "KEY1=VALUE1", "KEY2=VALUE2", ... } This is the same form as os.Environ.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/virtualenv/commandlineprompter | Package commandlineprompter implements functionality for setting the command prompt (PS1) for various shells |
pkg/virtualenv/shellgetter | Package shellgetter implements functionality for deciding which shell is the primary shell of the provided environment. |
pkg/virtualenv/shelltype | Package shelltype contains constants to identify a shell (bash, zsh, etc) |
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 18 hours ago –
Tools for package owners.