-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/cobrautil/templates: improve flags printing
This patch slightly changes the kubectl based flag output to be more similar to curl help. Changes: * Use quoted name for value description - like in curl * Use (default XXX) - like in the stock cobra output * Add (env FORWARDER_XXX) - this is Forwarder specific, it simplifies working with containers and Systemd where flags are specified as environment variables. Sample output: -n, --dns-server (env FORWARDER_DNS_SERVER) DNS server(s) to use instead of system default, format: <ip>[:<port>] (default port is 53). If specified multiple times, the first one is used as primary server, the rest are used as a fallback. --dns-timeout duration (default 5s) (env FORWARDER_DNS_TIMEOUT) Timeout for dialing DNS servers.
- Loading branch information
Showing
3 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters