Commit graph

14 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
6b75f18b78 Only attach Forms XML if a viewer file is defined
Resolves #420
2023-09-22 20:26:17 +02:00
Martin Hebnes Pedersen
13448c89e3 Don't attempt to convert SVG attachments
Resolves #419
2023-07-24 19:27:02 +02:00
Martin Hebnes Pedersen
09460b59a1 internal/forms: Cleanup for improved readability 2023-04-17 07:59:50 +02:00
Martin Hebnes Pedersen
0040473c18 Add --p2p-only option to compose
Resolves #334
2022-03-21 22:01:53 +01:00
Martin Hebnes Pedersen
441fda35c4 Graceful shutdown through context cancellation
By doing graceful shutdown, we're able to properly close all of the open
resources such as modem connections and ongoing sessions.

This will allow transport drivers controlling stateful TNCs (e.g.
ptc-go) to recover the initial TNC state before termination.

Resolves #314
2022-02-20 14:48:29 +01:00
Daniele Forsi
a840ced09b Fix typing errors in d/changelog and comments
Fix spelling erors found with:
codespell --skip web,*.rtf --ignore-words-list ans --write-changes
2022-01-04 21:53:19 +01:00
Benjamin Seidenberg
fdabbcc4ef Add --from/-r option for non-interactive compose.
Address https://github.com/la5nta/pat/issues/310https://github.com/la5nta/pat/issues/310
2021-12-19 18:20:03 +01:00
Benjamin Seidenberg
e05927ccfe Fix length check per https://github.com/la5nta/pat/pull/299 discussion 2021-12-05 10:00:28 +01:00
Martin Hebnes Pedersen
73dfef18ca Fix non-interactive cli compose 2021-12-03 21:27:04 +01:00
Benjamin Seidenberg
b39809011f Add support for scriptable message composition
Addresses https://github.com/la5nta/pat/issues/297

This commit adds support for non-interactive message sending from the
command line, in order to support scriptable interactions.

To do this, we fork the compose path into 3:
- Interactive (existing)
- Non-Interactive (based on command-line arguments and stdin)
- Reply (synonym for interactive)
2021-12-03 21:14:28 +01:00
Chris Keller
e68850056e Fix some Go linter errors
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.
2021-08-20 21:35:21 +02:00
Chris Keller
e94f05f37c Move config, data and state files to XDG locations
Addressing https://github.com/la5nta/pat/issues/216. Includes migration of existing files, plus refactoring of directory access and build info.
2021-08-15 19:35:15 +02:00
Chris Keller
452cf749b2 Don't use converted images if they're bigger than original
Fixes #243
2021-06-23 21:47:26 +02:00
rainerg2000
9f504321e1 added CLI option composeform for generating a message based on Winlink forms, like ICS213 2021-06-16 20:08:41 +02:00