Commit graph

25 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
e16156c4f1 Switch from gorhill/cronexpr to adhocore/gronx
gorhill/cronexpr was archived in 2019.
2026-04-19 19:16:28 +02:00
Martin Hebnes Pedersen
6592fcf937 Limit prehook executable paths to the prehooks dir 2026-04-19 17:33:10 +02:00
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
53058b982c Fix panic on invalid schedule expressions 2025-12-29 12:11:11 +01:00
Martin Hebnes Pedersen
80a19c174e Remove legacy // +build comments
Only required for Go 1.16 or older (which we no longer support)
2025-10-31 12:35:23 +01:00
Martin Hebnes Pedersen
ed6d6fde10 Add verbose option to version command
Prints all modules that the build consists of.
2025-09-18 11:57:07 +02:00
Martin Hebnes Pedersen
c71cfaf87f Revert "Temporarily disable prompt to defer OTA activation"
Ref #491

CMS was recently patched to resolve the issue. The auto-generated
passwords will no longer take effect until the OTA activation message
has been downloaded.

This reverts commit e1354901a7.
2025-09-12 09:44:16 +02:00
Martin Hebnes Pedersen
247e64164e Handle interrupt (ctrl+c) in configure 2025-09-03 19:01:01 +02:00
Martin Hebnes Pedersen
ec6a1870e9 Add some tests 2025-09-01 13:28:41 +02:00
Martin Hebnes Pedersen
8b09160457 Integrate prediction into rmslist
Enabled by default if voacapl or voacapw is found on the system.
Configuration options are available for advanced setup.

Issue #494
2025-08-12 19:24:01 +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
0873ffd95b Add option to forward message in CLI reader 2025-07-09 09:26:49 +02:00
Martin Hebnes Pedersen
848d6bf44c Add option to delete msg in CLI reader 2025-07-08 06:23:07 +02:00
Martin Hebnes Pedersen
9387b5fc7d Fix exit on interrupt for interactive commands 2025-07-06 10:07:52 +02:00
Martin Hebnes Pedersen
e1354901a7 Temporarily disable prompt to defer OTA activation
Also adjust the pre-connect prompt to be even more dramatic about the
consequences of over-the-air activation.

Ref #491 and #445
2025-07-02 19:18:13 +02:00
Martin Hebnes Pedersen
9f22229f0d Prompt to create new account before connecting
Ref #491 and #445
2025-07-01 08:46:05 +02:00
Martin Hebnes Pedersen
d4afe76a75 Prompt before accepting "Your New Winlink Account"
Ref #491 and #445
2025-06-29 19:21:39 +02:00
Martin Hebnes Pedersen
3f684b0852 Log system messages and received account password
This will hopefully better communicate to new users that are testing Pat
that an account was activated and they should store their password
safely.

Ref #491 and #445
2025-06-27 19:55:53 +02:00
Martin Hebnes Pedersen
85fca6ccf2 Add init command with API-based account creation
Ref #491
2025-06-25 21:00:29 +02:00
Justin Overfelt
85e8a6e64a Display one column for manual or automatic forwarding in mps list
ref #51
2025-06-18 09:52:51 +02:00
Justin Overfelt
cd388c0b4d Update MPS list to use /hybridStation endpoint, prevent adding > 3 MPS
ref #51
2025-06-16 06:57:09 +02:00
Martin Hebnes Pedersen
c266e0b52d Improve busy-channel prompt
Ref discussion n8jja/Pat-Vara#44
2025-06-15 14:16:39 +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