forked from kubernetes/git-sync
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Env-flags are "flags" that can only be set by env var (see caveat below). All of the real flags have a corresponding env-flag (kind of, but not really). The real goal was to deprecate `--password` but keep the env var as a documented interface. This does that (though --password still works) and updates the usage and manual. This allows some future work to follow the pattern. We do not register every CLI flag as an env-flag because the help text would be duplicative. This probably wants a wrapper API that allows declaring of abstract flags, with CLI, env, or both sources. Caveat: ACTUALLY, these still have a flag, but the flag is specially named and hidden. This makes testing a little easier where passing flags is handled well but env vars is not.
- Loading branch information
Showing
4 changed files
with
181 additions
and
70 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
Oops, something went wrong.