Nathan Baulch
657fda216a
chore(ci): upgrade to golangci-lint 2.6.1 ( #4973 )
...
- upgrade to golangci-lint 2.6.1
- updates for gosec
- updates for govet
- updates for perfsprint
- updates modernize
Leaves out modernize:omitempty due to conflicts with tests
2025-11-11 21:27:10 -08:00
Nathan Baulch
557940c524
chore(ci): upgrade to golangci-lint v2.5.0 ( #4931 )
...
Upgrades golangci-lint to v2.5.0
Enables:
- wsl_v5
Disables:
- embeddedstructfieldcheck
- noinlineerr (not used in this codebase)
- noctx (temporarily)
- godot
- wsl (deprecated)
Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com >
2025-11-11 12:37:07 -08:00
Matthieu MOREL
8a176255c0
fix(general): enable wsl for all go files ( #4524 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-04-26 13:01:20 -07:00
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