Jarek Kowalski
c0bd372d29
feat(cli): support for defining notification profiles and templates via CLI (#4034)
* feat(cli): support for defining notification profiles via CLI
Profile management:
```
$ kopia notification profile configure email \
--profile-name=X \
--smtp-server=smtp.gmail.com \
--smtp-port=587 \
--smtp-username=X \
--smtp-password=X \
--mail-from=X \
--mail-to=X \
--format=html|txt \
[--send-test-notification]
$ kopia notification profile configure pushover --profile-name=X \
--user-key=X \
--app-token=X \
--format=html|txt \
[--send-test-notification]
$ kopia notification profile configure webhook --profile-name=X \
--endpooint=http://some-address:port/path \
--method=POST|PUT \
--format=html|txt \
[--send-test-notification]
$ kopia notification profile test --profile-name=X
$ kopia notification profile delete --profile-name=X
$ kopia notification profile list
```
Template management:
```
$ kopia notification template show X
$ kopia notification template set X \
--from-stdin | --from-file=X | --editor
$ kopia notification template remove X
$ kopia notification template list
```
Implements #1958
* additional refactoring for testability, various naming tweaks
2024-10-06 16:28:39 +00:00
..
2024-10-05 19:05:00 -07:00
2024-10-05 19:05:00 -07:00
2024-02-03 21:44:41 -08:00
2024-06-07 13:00:44 -07:00
2024-10-05 19:05:00 -07:00
2024-10-05 19:05:00 -07:00
2024-05-29 20:31:57 -07:00
2024-10-06 09:05:26 -07:00
2022-07-30 14:13:52 -07:00
2023-08-24 09:38:56 -07:00
2023-01-21 07:37:15 -08:00
2022-08-09 06:07:54 +00:00
2024-06-18 23:13:17 -07:00
2024-09-03 21:29:56 -07:00
2024-05-29 20:31:57 -07:00
2024-10-05 19:05:00 -07:00
2024-10-06 16:28:39 +00:00
2024-10-05 19:05:00 -07:00
2024-04-08 09:52:47 -07:00
2023-04-11 15:58:20 -04:00
2024-07-11 17:18:44 -07:00
2023-04-13 18:58:16 -07:00
2023-07-27 11:30:40 -07:00
2023-10-05 02:45:44 +00:00
2024-10-05 19:05:00 -07:00
2024-10-06 16:28:39 +00:00
2022-08-09 06:07:54 +00:00
2024-10-05 19:05:00 -07:00
2024-04-12 22:59:11 -07:00
2024-02-02 23:34:34 -08:00
2023-12-17 22:21:28 -08:00
2024-04-08 09:52:47 -07:00
2024-05-29 20:31:57 -07:00
2024-08-24 04:44:35 +00:00
2024-05-29 20:31:57 -07:00
2024-10-05 19:05:00 -07:00
2022-05-16 05:28:57 +00:00
2024-03-09 10:39:11 -08:00
2023-12-17 22:21:28 -08:00
2024-04-08 09:52:47 -07:00
2024-10-05 19:05:00 -07:00
2024-06-18 23:13:17 -07:00
2024-09-03 21:29:56 -07:00
2024-02-02 23:34:34 -08:00
2024-10-05 19:05:00 -07:00
2024-10-05 19:05:00 -07:00
2024-10-05 19:05:00 -07:00
2024-10-06 09:05:26 -07:00
2024-04-08 09:52:47 -07:00
2024-10-06 16:28:39 +00:00
2024-04-06 05:10:11 +00:00
2024-04-26 23:30:56 -07:00
2023-02-09 06:47:36 +00:00
2023-06-18 13:26:01 -07:00
2022-11-19 18:39:04 +00:00
2022-09-14 09:48:02 -07:00
2024-02-02 23:34:34 -08:00
2024-05-29 20:31:57 -07:00
2022-10-28 11:02:47 -07:00
2022-11-19 18:39:04 +00:00
2024-06-18 23:13:17 -07:00
2024-10-05 19:05:00 -07:00
2024-08-26 17:26:32 -07:00
2024-10-05 19:05:00 -07:00
2024-04-26 14:47:36 -07:00
2023-10-05 02:45:44 +00:00
2024-04-08 09:52:47 -07:00
2024-05-29 20:31:57 -07:00