senzing-garage/senzing-tools

Add Commandline/EnVar parameters

Closed this issue · 1 comments

In https://github.com/Senzing/senzing-tools/blob/main/option/main.go, add

const (
    ObserverOrigin   = "observer-origin"
    ObserverGrpcPort = 8260
    ObserverUrl      = "observer-url"
)

In https://github.com/Senzing/senzing-tools/blob/main/envar/main.go, add:

const (
    ObserverOrigin   = "SENZING_TOOLS_OBSERVER_ORIGIN"
    ObserverGrpcPort = "SENZING_TOOLS_OBSERVER_GRPC_PORT"
    ObserverUrl      = "SENZING_TOOLS_OBSERVER_URL"
)

Used by https://github.com/Senzing/init-database/blob/main/cmd/root.go

Closed via #43