Documentation
¶
Overview ¶
Package cmd is the dispatcher for the gorouter CLI. It registers all commands and routes incoming arguments to the matching command implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run parses args and dispatches to the matching command. args must not include the executable name (pass os.Args[1:]).
Every flag can be set via an APOLLO_ROUTER_-prefixed environment variable. The mapping rule is: prepend APOLLO_ROUTER_, uppercase, replace dashes with underscores.
Flags supplied on the command line always take precedence over env vars.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config implements the "config" CLI command group.
|
Package config implements the "config" CLI command group. |
|
schema
Package schema implements the "config schema" CLI subcommand.
|
Package schema implements the "config schema" CLI subcommand. |
|
validate
Package validate implements the "config validate" CLI subcommand.
|
Package validate implements the "config validate" CLI subcommand. |
|
Package root defines the root configuration for the CLI.
|
Package root defines the root configuration for the CLI. |
|
Package run implements the "run" CLI command that starts the router HTTP server.
|
Package run implements the "run" CLI command that starts the router HTTP server. |
|
Package version implements the "version" CLI command.
|
Package version implements the "version" CLI command. |
Click to show internal directories.
Click to hide internal directories.