crowdsec/cmd/crowdsec-cli
mmetc f4b5bcb865
Refact cwhub: version comparison and branch selection (#2581)
* simplify GetItemByPath
* hub: sort version numbers by semver
* replace golang.org/x/mod/semver with github.com/Masterminds/semver/v3 (would not compare correctly)
* fix nil dereference with tainted items
* update tests for collections, postoverflows
* fix nil deref
* don't fallback to master if hub is not found, improve message
* explicit message for unknown version / tainted collections
2023-11-08 13:21:59 +01:00
..
require Refact cwhub: version comparison and branch selection (#2581) 2023-11-08 13:21:59 +01:00
alerts.go add alert alias (#2485) 2023-09-23 19:35:02 +01:00
alerts_table.go display source in alerts list when an alert has multiple decisions (#2098) 2023-03-06 13:51:57 +01:00
bouncers.go use go 1.21.1 (#2418) 2023-10-04 13:01:57 +02:00
bouncers_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
capi.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
completion.go Update deps to latest stable: go-systemd, tail, cobra, lumberjack, testify (#2164) 2023-04-12 16:58:11 +02:00
config.go Implement "cscli config show-yaml" (#2191) 2023-05-11 21:01:13 +02:00
config_backup.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
config_feature_flags.go cscli config feeature-flags: point user to the right location of feature.yaml (#2539) 2023-10-13 09:52:51 +02:00
config_restore.go Refact cwhub (#2578) 2023-11-06 17:35:33 +01:00
config_show.go Refact pkg/csconfig, pkg/cwhub (#2555) 2023-10-19 12:04:29 +02:00
config_showyaml.go Implement "cscli config show-yaml" (#2191) 2023-05-11 21:01:13 +02:00
console.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
console_table.go do not try to load PAPI is url is not set (#2099) 2023-03-06 15:38:58 +01:00
copyfile.go minor refactor to pkg/types, cscli machines (#2270) 2023-06-08 15:08:51 +02:00
dashboard.go Check cscli preconditions with crowdsec-cli/require package (#2388) 2023-07-27 17:02:20 +02:00
decisions.go cscli decisions list -o json => [] instead of null; same for alerts (#2397) 2023-08-03 12:51:50 +02:00
decisions_import.go refactor alert/decisions insert/update to avoid database locking in bulk operations (#2446) 2023-09-04 14:21:45 +02:00
decisions_table.go print missing "AS" values as empty strings instead of "0 " (#1867) 2022-11-14 09:55:53 +01:00
explain.go minor log message improvements (#2455) 2023-09-12 11:04:56 +02:00
hub.go Refact cwhub: version comparison and branch selection (#2581) 2023-11-08 13:21:59 +01:00
hubtest.go Refact pkg/hubtest (#2580) 2023-11-07 14:02:02 +01:00
hubtest_table.go Refact pkg/hubtest (#2580) 2023-11-07 14:02:02 +01:00
item_metrics.go Refact cwhub: version comparison and branch selection (#2581) 2023-11-08 13:21:59 +01:00
item_suggest.go Refact cwhub: minor cleanups and comments (#2574) 2023-10-31 16:32:29 +01:00
itemcommands.go Refact cwhub: minor cleanups and comments (#2574) 2023-10-31 16:32:29 +01:00
items.go Refact cwhub: version comparison and branch selection (#2581) 2023-11-08 13:21:59 +01:00
lapi.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
machines.go use go 1.21.1 (#2418) 2023-10-04 13:01:57 +02:00
machines_table.go minor refactor to pkg/types, cscli machines (#2270) 2023-06-08 15:08:51 +02:00
main.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
Makefile Make: build with debug symbols in func tests or if DEBUG=1; drop BUILD_VENDOR_FLAGS (#2443) 2023-08-28 15:58:26 +02:00
messages.go functional tests, minor refactoring and lint/cleanup (#1570) 2022-06-06 15:24:48 +02:00
metrics.go bats: more cscli hub tests (#2541) 2023-10-17 16:12:41 +02:00
metrics_table.go typo fix, uppercase 'API', adjusted log level (#2361) 2023-07-21 23:23:24 +02:00
notifications.go update dependency on go-cs-lib; drop the pkg/ part (#2393) 2023-07-28 16:35:08 +02:00
notifications_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
papi.go update dependency on go-cs-lib; drop the pkg/ part (#2393) 2023-07-28 16:35:08 +02:00
setup.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
simulation.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
support.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00
tables.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
utils.go Refact cscli item listing, tests (#2547) 2023-10-17 16:12:41 +02:00
utils_table.go Refact pkg/cwhub, cscli: hub upgrades (#2568) 2023-10-30 17:23:50 +01:00