commit this WIP stuff to a feature branch
This commit is contained in:
@@ -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()),
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user