add helper func to get env
This commit is contained in:
2
main.go
2
main.go
@@ -85,6 +85,8 @@ func main() {
|
|||||||
a.Logger.Debugf("%+v\n", a)
|
a.Logger.Debugf("%+v\n", a)
|
||||||
|
|
||||||
switch *mode {
|
switch *mode {
|
||||||
|
case "getenv":
|
||||||
|
fmt.Println(os.Getenv(flag.Arg(0)))
|
||||||
case "nixmeshnodeid":
|
case "nixmeshnodeid":
|
||||||
fmt.Print(a.NixMeshNodeID())
|
fmt.Print(a.NixMeshNodeID())
|
||||||
case "installsvc":
|
case "installsvc":
|
||||||
|
Reference in New Issue
Block a user