cmd/wavelet: add environment vars
@@ -85,21 +85,25 @@ func main() {
Name: "host",
Value: "127.0.0.1",
Usage: "Listen for peers on host address.",
+ EnvVar: "WAVELET_NODE_HOST",
}),
altsrc.NewIntFlag(cli.IntFlag{
Name: "port",
Value: 3000,
Usage: "Listen for peers on port.",
+ EnvVar: "WAVELET_NODE_PORT",
}),
altsrc.NewStringFlag(cli.StringFlag{
Name: "wallet",
Value: "config/wallet.txt",
Usage: "path to file containing hex-encoded private key. If empty, a random wallet will be generated.",
+ EnvVar: "WAVELET_WALLET_PATH",
}),
altsrc.NewIntFlag(cli.IntFlag{
Name: "api.port",
Value: 0,
Usage: "Host a local HTTP API at port.",
+ EnvVar: "WAVELET_API_PORT",
}),
altsrc.NewIntFlag(cli.IntFlag{
Name: "sys.query_timeout",
