Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandLine ¶
func ParseCommandLine ¶
func ParseCommandLine(args []string) (CommandLine, error)
type Env ¶
Env is the startup environment: command line args and environment variables. This is mostly used for testing to override the defaults.
type Options ¶
type Options struct { Client string `arg:"env:FINCH_CLIENT"` CPUProfile string `arg:"--cpu-profile,env:FINCH_CPU_PROFILE"` Database string `arg:"-D,--database,env:FINCH_DB"` Debug bool `arg:"env:FINCH_DEBUG"` DSN string `arg:"env:FINCH_DSN"` Help bool Params []string `arg:"-p,--param,separate"` Server string `arg:"env:FINCH_SERVER"` Test bool `arg:"env:FINCH_TEST"` Version bool }
Options represents the command line options
Click to show internal directories.
Click to hide internal directories.