Documentation
¶
Overview ¶
Package gpgsmith provides the CLI application for gpgsmith.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDaemon ¶
EnsureDaemon checks whether a gpgsmith daemon is reachable on its canonical socket. If it is, EnsureDaemon returns nil immediately. Otherwise it spawns one as a detached child process by exec'ing `gpgsmith daemon start --foreground` and waits up to `timeout` for the socket to become ready.
Used by CLI commands so that a user-facing command like `gpgsmith keys list` transparently spins up the daemon if it isn't already running. The user opts out by running `gpgsmith daemon stop` and avoiding commands that need the daemon thereafter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.