Commit graph

8 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
b6d5c8ade8 Use term.IsTerminal for terminal detection 2026-04-05 12:09:44 +02:00
Martin Hebnes Pedersen
43788c1b73 Replace howeyc/gopass with golang.org/x/term
github.com/howeyc/gopass was archived in 2021, which led to the debian
project to mark this as a release candidate bug (#1130525).

Resolves #517
2026-04-05 12:09:44 +02:00
Martin Hebnes Pedersen
01f8a273d5 Minor cli refactor and some more tests 2025-12-31 07:54:31 +01:00
Martin Hebnes Pedersen
ec6a1870e9 Add some tests 2025-09-01 13:28:41 +02:00
Martin Hebnes Pedersen
fe9b152a7a Refactor CLI message composer
This change refactors the command line message composer to unify the
various composition methods (interactive, non-interactive, reply,
forward, and template-based) into a single function.

The detection of non-interactive sessions was also changed to use a more
reliable check on `os.Stdin` instead of inspecting arguments.

A message preview and confirmation prompt has been added to the
interactive mode, allowing the user to review or edit the message before
it's posted to the outbox.
2025-07-15 19:35:46 +02:00
Martin Hebnes Pedersen
9387b5fc7d Fix exit on interrupt for interactive commands 2025-07-06 10:07:52 +02:00
Martin Hebnes Pedersen
85fca6ccf2 Add init command with API-based account creation
Ref #491
2025-06-25 21:00:29 +02:00
Martin Hebnes Pedersen
6ae942e13b Refactor to prepare for hot reloading of config
* Remove singletons
* Split into app, cli and api packages

Ref #6
2025-06-14 07:50:42 +02:00