Documentation
¶
Index ¶
- func GetEnvVarNames() string
- type LocalSystem
- func (s *LocalSystem) Chdir(path string) error
- func (s *LocalSystem) Command(name string, arg ...string) *exec.Cmd
- func (s *LocalSystem) Env() []string
- func (s *LocalSystem) Environ() map[string]any
- func (s *LocalSystem) Exit(code int)
- func (s *LocalSystem) Getenv(key string) any
- func (s *LocalSystem) Getwd() (string, error)
- func (s *LocalSystem) Setenv(key string, value any)
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvVarNames ¶
func GetEnvVarNames() string
Types ¶
type LocalSystem ¶
type LocalSystem struct {
// exit call back
Exitf func(int)
// contains filtered or unexported fields
}
func NewLocalSystem ¶
func NewLocalSystem(ws vfs.Workspace) (*LocalSystem, error)
func (*LocalSystem) Chdir ¶
func (s *LocalSystem) Chdir(path string) error
func (*LocalSystem) Env ¶ added in v0.0.3
func (s *LocalSystem) Env() []string
Env returns all environment variables as a name=value list. It converts complex and nested data structures into a JSON string representation when necessary. For basic types such as strings, integers, floats, and booleans, a direct conversion to a string format is applied.
func (*LocalSystem) Environ ¶
func (s *LocalSystem) Environ() map[string]any
Return all environment variables as a map.
func (*LocalSystem) Exit ¶
func (s *LocalSystem) Exit(code int)
func (*LocalSystem) Getenv ¶
func (s *LocalSystem) Getenv(key string) any
func (*LocalSystem) Getwd ¶
func (s *LocalSystem) Getwd() (string, error)
func (*LocalSystem) Setenv ¶
func (s *LocalSystem) Setenv(key string, value any)
Click to show internal directories.
Click to hide internal directories.