ageagentlauncher

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ageagentlauncher wires the standalone gopass CLI's age-agent launcher into the age backend.

Only the standalone gopass binary owns the `age agent start` subcommand, so the os.Args[0] re-exec that starts the agent lives here (CLI side), not in the age backend. The backend must stay embeddable as a library: a consumer that does not register a launcher gets graceful degradation (no autostart, per-operation password prompt) instead of a fork bomb. See internal/backend/crypto/age.WithAgentLauncher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context) context.Context

Register installs the CLI's age-agent launcher into ctx so the age backend can auto-start the agent when needed. Call once during CLI startup (e.g. from main.initContext); it covers every age.New call site because the top-level ctx propagates to every command action.

Types

This section is empty.

Jump to

Keyboard shortcuts

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