Skip to content

Commit 4676a5c

Browse files
authored
Apply command option from environment values (#371)
1 parent e411226 commit 4676a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/bigquery-emulator/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
)
1616

1717
type option struct {
18-
Project string `description:"specify the project name" long:"project"`
19-
Dataset string `description:"specify the dataset name" long:"dataset"`
18+
Project string `description:"specify the project name" long:"project" env:"BIGQUERY_EMULATOR_PROJECT"`
19+
Dataset string `description:"specify the dataset name" long:"dataset" env:"BIGQUERY_EMULATOR_DATASET"`
2020
Host string `description:"specify the host" long:"host" default:"0.0.0.0"`
2121
HTTPPort uint16 `description:"specify the http port number. this port used by bigquery api" long:"port" default:"9050"`
2222
GRPCPort uint16 `description:"specify the grpc port number. this port used by bigquery storage api" long:"grpc-port" default:"9060"`

0 commit comments

Comments
 (0)