mirror of
https://github.com/kopia/kopia.git
synced 2026-01-23 13:58:08 -05:00
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.
10 lines
281 B
Go
10 lines
281 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/alecthomas/kingpin"
|
|
)
|
|
|
|
func (c *App) setupOSSpecificKeychainFlags(app *kingpin.Application) {
|
|
app.Flag("use-keyring", "Use Gnome Keyring for storing repository password.").Default("false").Envar("KOPIA_USE_KEYRING").BoolVar(&c.keyRingEnabled)
|
|
}
|