add helper func to get env
This commit is contained in:
parent
41597d7d26
commit
607a5283ac
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":
|
||||||
|
Loading…
Reference in New Issue
Block a user