cli: linux: read KOPIA_USE_KEYRING env
On Linux, Keyring is disabled by default and `--use-keyring` must
be specified on every command-line invocation, which gets quite
annoying.
This commit allows enabling keyring from environment variable
instead.
)
func (c *App) setupOSSpecificKeychainFlags(app *kingpin.Application) {
- app.Flag("use-keyring", "Use Gnome Keyring for storing repository password.").Default("false").BoolVar(&c.keyRingEnabled)
+ app.Flag("use-keyring", "Use Gnome Keyring for storing repository password.").Default("false").Envar("KOPIA_USE_KEYRING").BoolVar(&c.keyRingEnabled)
}
