mirror of
https://github.com/kopia/kopia.git
synced 2026-09-13 13:48:32 -04:00
- use struct field initialization idiom - clarify error message - directly use s.rootctx in server request processing - refactor: use require in e2e ACL test - inline constant definition - modernize with `strings.Cut` - modernize with slices.Backward - simplify timeFormat initialization - refactor testing: check `Scanner.Err()` in testenv - remove spurious parenthesis - trueStr and falseStr consts - use inheritPolicyString - use const in cache info - "bytes" const in ui task counters - use common consts in gettool
10 lines
315 B
Go
10 lines
315 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/alecthomas/kingpin/v2"
|
|
)
|
|
|
|
func (c *App) setupOSSpecificKeychainFlags(svc appServices, app *kingpin.Application) {
|
|
app.Flag("use-keyring", "Use Gnome Keyring for storing repository password.").Default(falseStr).Envar(svc.EnvName("KOPIA_USE_KEYRING")).BoolVar(&c.keyRingEnabled)
|
|
}
|