mirror of
https://github.com/kopia/kopia.git
synced 2026-01-24 14:28:06 -05:00
* introduced passwordpersist package which has password persistence strategies (keyring, file, none, multiple) with possibility of adding more in the future. * moved all password persistence logic out of 'repo' * removed global variable repo.EnableKeyRing
10 lines
254 B
Go
10 lines
254 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").BoolVar(&c.keyRingEnabled)
|
|
}
|