Commit graph

11 commits

Author SHA1 Message Date
mmetc
ce6018fbbf
config.yaml: make config_dir and notification_dir optional (#3606)
Some checks are pending
Tests / sqlite (push) Waiting to run
Tests / mariadb (push) Waiting to run
Tests / mysql (push) Waiting to run
Tests / postgres (push) Waiting to run
Tests / hub (push) Waiting to run
Release Drafter / update_release_draft (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Test Docker images / test_flavor (debian) (push) Waiting to run
Test Docker images / test_flavor (slim) (push) Waiting to run
Go tests (windows) / Build + tests (push) Waiting to run
Build / Build + tests (push) Waiting to run
(push-master) Publish latest Docker images / dev-alpine (push) Waiting to run
(push-master) Publish latest Docker images / dev-debian (push) Waiting to run
2025-05-09 10:58:12 +02:00
blotus
a79b92f280
make CTI client available in cscli notifications (#3591) 2025-04-28 18:13:53 +02:00
mmetc
b12ade27f4
cscli: review/update argument number checking (#3490)
* cscsli: remove unused Command.Args setting

* cscli: review/update argument number checking

cscli will consistently print the help text if the number of arguments is
wrong for the command, but not for other types of errors.

* fix func tests

* lint
2025-03-04 12:21:27 +01:00
mmetc
bbe7752967
update golangci-lint to 1.62 (#3332)
- ensure consistent pointer/value receivers
 - testify: json assertions with dedicated methods
2024-11-27 14:14:56 +01:00
mmetc
92662ed461
refact cscli: decisions, lapi, bouncers, machines (#3306)
* refact "cscli decisions import"

* cobra.ExactArgs(0) -> cobra.NoArgs

* refact cscli bouncers

* refact cscli machines

* refact "cscli lapi"

* lint
2024-10-30 10:59:20 +01:00
mmetc
8ff58ee74e
context propagation: pkg/csplugin (#3273) 2024-10-10 17:18:59 +02:00
mmetc
3945a991bd
context propagation: pkg/database/alerts (#3252)
* alerts
* drop CTX from dbclient
* lint
* pkg/database/alerts: context.TODO()
* cscli: context.Background() -> cmd.Context()
2024-09-24 14:13:45 +02:00
mmetc
ce085dc4cd
logs and user messages: use "parse" and "serialize" instead of marshal/unmarshal (#3240) 2024-09-17 13:19:14 +02:00
mmetc
57539f61b4
refact cscli - don't export functions if not required (#3224)
* unexport subcommand constructors

* unexport internal methods

* lint + rename local variables
2024-09-11 15:38:15 +02:00
mmetc
c8750f604c
refact: pkg/apiclient set and use default user agent (#3219)
* default user agent

* DRY default user agent

* useragent.go

* moved to pkg/apiclient/useragent

* lint

* rename useragent.DefaultUserAgent() -> useragent.Default()
2024-09-09 11:27:20 +02:00
mmetc
c4431b6385
cscli refact: notifications, simulation, papi, setup (#3190)
* package 'clinotifications'

* package 'clisimulation'

* package 'clipapi'

* package 'cslisetup'
2024-08-26 16:33:35 +02:00
Renamed from cmd/crowdsec-cli/notifications.go (Browse further)