MCPcopy Create free account
hub / github.com/Sma1lboy/RegTool / ShellManager

Interface ShellManager

shell/shell_manager.go:10–13  ·  view source on GitHub ↗

ShellManager is an interface for setting and getting environment variables in shell configuration files.

Source from the content-addressed store, hash-verified

8
9// ShellManager is an interface for setting and getting environment variables in shell configuration files.
10type ShellManager interface {
11 SetEnv(key, value string) error
12 GetEnv(key string) (string, error)
13}
14
15// ShellFactory is a function type that returns a new ShellManager.
16type ShellFactory func() ShellManager

Callers 1

SetRegistryMethod · 0.95

Implementers 2

Zshshell/zsh/zsh.go
Bashshell/bash/bash.go

Calls

no outgoing calls

Tested by

no test coverage detected