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. 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.
- Loading branch information
Showing
4 changed files
with
151 additions
and
73 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.