{"modulePath":"github.com/wavetermdev/waveterm/waveshell","version":"v0.7.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shellenv\n\n## Constants\n\n```go\nconst (\n\tDeclTypeArray      = \"array\"\n\tDeclTypeAssocArray = \"assoc\"\n\tDeclTypeInt        = \"int\"\n\tDeclTypeNormal     = \"normal\"\n)\n```\n\n## Functions\n\n```go\nfunc DeclMapFromState(state *packet.ShellState) map[string]*DeclareDeclType\n```\n\n```go\nfunc DeclsEqual(compareName bool, d1 *DeclareDeclType, d2 *DeclareDeclType) bool\n```\n\n```go\nfunc DumpVarMapFromState(state *packet.ShellState)\n```\n\n```go\nfunc EnvMapFromState(state *packet.ShellState) map[string]string\n```\n\n```go\nfunc RemoveFunc(funcs string, toRemove string) string\n```\n\n```go\nfunc SerializeDeclMap(declMap map[string]*DeclareDeclType) []byte\n```\n\n```go\nfunc ShellStateVarsToMap(shellVars []byte) map[string][]byte\n```\n\n```go\nfunc ShellVarMapFromState(state *packet.ShellState) map[string]string\n```\n\n```go\nfunc StrMapToShellStateVars(varMap map[string][]byte) []byte\n```\n\n## Types\n\n```go\ntype DeclareDeclType struct {\n\tIsZshDecl bool\n\tIsExtVar  bool // set for \"special\" wave internal variables\n\n\tArgs string\n\tName string\n\n\t// this holds the raw quoted value suitable for bash. this is *not* the real expanded variable value\n\tValue string\n\n\t// special fields for zsh \"-T\" output.\n\t// for bound scalars, \"Value\" hold everything after the \"=\" (including the separator character)\n\tZshBoundScalar string // the name of the \"scalar\" env variable\n\tZshEnvValue    string // unlike Value this *is* the expanded value of scalar env variable\n}\n```\n\n```go\nfunc FindVarDecl(decls []*DeclareDeclType, name string) *DeclareDeclType\n```\n\n```go\nfunc VarDeclsFromState(state *packet.ShellState) []*DeclareDeclType\n```\n\n```go\nfunc (d *DeclareDeclType) AddFlag(flag string)\n```\n\n```go\nfunc (d *DeclareDeclType) DataType() string\n```\n\n```go\nfunc (d *DeclareDeclType) IsArray() bool\n```\n\n```go\nfunc (d *DeclareDeclType) IsAssocArray() bool\n```\n\n```go\nfunc (d *DeclareDeclType) IsExport() bool\n```\n\n```go\nfunc (d *DeclareDeclType) IsReadOnly() bool\n```\n\n```go\nfunc (d *DeclareDeclType) IsUniqueArray() bool\n```\n\n```go\nfunc (d *DeclareDeclType) IsZshScalarBound() bool\n```\n\n```go\nfunc (d *DeclareDeclType) Serialize() []byte\n```\nNOTE Serialize no longer writes the final null byte\n\n```go\nfunc (d *DeclareDeclType) SortZshFlags()\n```\n\n```go\nfunc (d *DeclareDeclType) UnescapedValue() string\n```\n\n","path":"github.com/wavetermdev/waveterm/waveshell/pkg/shellenv","name":"shellenv","synopsis":"","isRedistributable":true}
