commit this WIP stuff to a feature branch

This commit is contained in:
brent saner
2025-12-06 19:19:53 -05:00
parent 803be548cf
commit 241a46c9b4
8 changed files with 981 additions and 317 deletions

View File

@@ -1,5 +1,22 @@
package envs
import (
"os"
"github.com/shirou/gopsutil/v4/process"
"r00t2.io/sysutils/internal"
)
var (
StructTagInterpolate string = "envsub"
)
var (
defEnv *StaticEnv = &StaticEnv{
dynamic: true,
self: true,
// don't need a process.NewProcess since the only extra thing it does is check if the PID exists.
proc: &process.Process{Pid: int32(os.Getpid())},
envVars: internal.EnvListToMap(os.Environ()),
}
)