add helper func to get env
This commit is contained in:
parent
41597d7d26
commit
607a5283ac
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
|
@ -85,6 +85,8 @@ func main() {
|
|||
a.Logger.Debugf("%+v\n", a)
|
||||
|
||||
switch *mode {
|
||||
case "getenv":
|
||||
fmt.Println(os.Getenv(flag.Arg(0)))
|
||||
case "nixmeshnodeid":
|
||||
fmt.Print(a.NixMeshNodeID())
|
||||
case "installsvc":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue