Skip to content

Commit

Permalink
group flag entities by purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen McQuay committed Oct 2, 2017
1 parent 1c76eaa commit d782570
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ package eventmaster
type Flags struct {
Port int `long:"port" default:"50052" description:"Port for EventMaster gRPC + HTTP API"`

RsyslogServer bool `short:"r" long:"rsyslog_server" description:"Flag to start TCP rsyslog server"`

RsyslogPort int `long:"rsyslog_port" default:"50053" description:"Port for rsyslog clients to send logs to"`
ConfigFile string `short:"c" long:"config" description:"location of configuration file"`

CAFile string `long:"ca_file" description:"PEM encoded CA's certificate file path"`
RsyslogServer bool `short:"r" long:"rsyslog_server" description:"Flag to start TCP rsyslog server"`
RsyslogPort int `long:"rsyslog_port" default:"50053" description:"Port for rsyslog clients to send logs to"`

CAFile string `long:"ca_file" description:"PEM encoded CA's certificate file path"`
CertFile string `long:"cert_file" description:"PEM encoded certificate file path"`

KeyFile string `long:"key_file" description:"PEM encoded private key file path"`

ConfigFile string `short:"c" long:"config" description:"location of configuration file"`
KeyFile string `long:"key_file" description:"PEM encoded private key file path"`

StaticFiles string `short:"s" long:"static" description:"location of static files to use (instead of embedded files)"`

Templates string `short:"t" long:"templates" description:"location of template files to use (instead of embedded)"`
Templates string `short:"t" long:"templates" description:"location of template files to use (instead of embedded)"`
}

0 comments on commit d782570

Please sign in to comment.