HasSecretRingFlag reports whether the "secret-keywring" command-line flag was registered. If so, it is safe to use ExplicitSecretRingFile.
()
| 240 | // HasSecretRingFlag reports whether the "secret-keywring" command-line flag was |
| 241 | // registered. If so, it is safe to use ExplicitSecretRingFile. |
| 242 | func 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 |