gpgsmith

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package gpgsmith provides the CLI application for gpgsmith.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDaemon

func EnsureDaemon(ctx context.Context, timeout time.Duration) error

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.

func Main

func Main(version, commit, date string) int

Main runs the gpgsmith CLI application and returns the exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL