MCPcopy
hub / github.com/version-fox/vfox / Shell

Interface Shell

internal/shell/shell.go:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36type Shell interface {
37 // Activate generates a shell script to be placed in the shell's configuration file, which will set up initial
38 // environment variables and set a hook to update the environment variables when needed.
39 Activate(config ActivateConfig) (string, error)
40
41 // Export generates a string that can be used by the shell to set or unset the given environment variables. (The
42 // input specifies environment variables to be unset by giving them a nil value.)
43 Export(envs env.Vars) string
44}
45
46func NewShell(name string) Shell {
47 switch strings.ToLower(name) {

Callers 4

renderActivateScriptFunction · 0.95
envFlagFunction · 0.95
renderActivateScriptFunction · 0.95

Implementers 6

fishinternal/shell/fish.go
nushellinternal/shell/nushell.go
clinkinternal/shell/clink.go
pwshinternal/shell/powershell.go
zshinternal/shell/zsh.go
bashinternal/shell/bash.go

Calls

no outgoing calls

Tested by

no test coverage detected