MCPcopy
hub / github.com/perkeep/perkeep / HasSecretRingFlag

Function HasSecretRingFlag

internal/osutil/paths.go:242–242  ·  view source on GitHub ↗

HasSecretRingFlag reports whether the "secret-keywring" command-line flag was registered. If so, it is safe to use ExplicitSecretRingFile.

()

Source from the content-addressed store, hash-verified

240// HasSecretRingFlag reports whether the "secret-keywring" command-line flag was
241// registered. If so, it is safe to use ExplicitSecretRingFile.
242func HasSecretRingFlag() bool { return secretRingFlagAdded }
243
244// ExplicitSecretRingFile returns the path to the user's GPG secret ring
245// file and true if it was ever set through the --secret-keyring flag or

Callers 1

SecretRingFileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected