crowdsec/cmd/crowdsec-cli
Laurence Jones 389ea4293f
Add metabase version override and update (#2370)
* Add version override and update

* Ooppsie

* Quick fix

* fgs copilot

* Allow user to overwrite image, add warning for exposing metabase and general cleanup

* One ix

* Default image if not found in config, and add a warning to remove and update

* Reorder check system memory checks so it inline with @mmetc best pratices

* No need for err

* Clean up some group code

* Change ipv6 as [] seems to wildcard

* Split loopback warn and disclaimer. Add force yes to start to allow user to accept disclaimer by default

* All cmd commands are RunE clean up

* Update flag name and dont allow a shorthand
2023-07-25 14:21:25 +01:00
..
alerts.go errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02: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 typo fix, uppercase 'API', adjusted log level (#2361) 2023-07-21 23:23:24 +02:00
bouncers_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
capi.go errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02:00
collections.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02: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 errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02:00
config_feature_flags.go cscli config feature-flags (#2006) 2023-01-20 09:32:10 +01:00
config_restore.go errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02:00
config_show.go use expr.Function for custom functions instead of passing them in the env (#2133) 2023-03-28 10:49:01 +02:00
config_showyaml.go Implement "cscli config show-yaml" (#2191) 2023-05-11 21:01:13 +02:00
console.go decouple bouncer dependencies: use go-cs-lib/pkg/ptr (#2228) 2023-05-25 15:43:39 +02: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 Add metabase version override and update (#2370) 2023-07-25 14:21:25 +01:00
decisions.go support for stdin with "cscli decision import" and raw values (#2291) 2023-06-27 14:29:42 +02:00
decisions_import.go support for stdin with "cscli decision import" and raw values (#2291) 2023-06-27 14:29:42 +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 Fix cscli explain when running from testenv (#2114) 2023-03-15 10:26:40 +01:00
hub.go fallback to master for hub index download if it does not exist (#2210) 2023-05-17 11:20:53 +02:00
hubtest.go replace log.Fatal -> fmt.Errorf (#2058) 2023-02-20 15:05:42 +01:00
hubtest_table.go rename pkg/cstest -> pkg/hubtest (#1811) 2022-10-17 09:24:07 +02:00
lapi.go typo fix, uppercase 'API', adjusted log level (#2361) 2023-07-21 23:23:24 +02:00
machines.go minor refactor to pkg/types, cscli machines (#2270) 2023-06-08 15:08:51 +02:00
machines_table.go minor refactor to pkg/types, cscli machines (#2270) 2023-06-08 15:08:51 +02:00
main.go typo fix, uppercase 'API', adjusted log level (#2361) 2023-07-21 23:23:24 +02:00
Makefile makefiles: de-duplicate, simplify and remove unused code (#2222) 2023-05-25 10:32:05 +02:00
messages.go functional tests, minor refactoring and lint/cleanup (#1570) 2022-06-06 15:24:48 +02:00
metrics.go change output of "cscli metrics -o [json|raw]" from list of objects to map with table names (#2375) 2023-07-25 13:33:50 +02:00
metrics_table.go typo fix, uppercase 'API', adjusted log level (#2361) 2023-07-21 23:23:24 +02:00
notifications.go errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02:00
notifications_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
papi.go dependencies: replaced function calls to pkg/types, errors.Wrap (#2235) 2023-06-01 16:31:56 +02:00
parsers.go break in smaller functions cscli hub, hubtest, notifications, parsers, scenarios, simulation (#2004) 2023-01-19 13:29:36 +01:00
postoverflows.go separate cscli cobra constructors: lapi, machines, bouncers, postoverflows (#1945) 2022-12-30 10:13:52 +01:00
scenarios.go errors.Wrap -> fmt.Errorf; clean up imports (#2297) 2023-06-22 15:01:34 +02:00
setup.go cscli setup (#1923) 2023-02-06 07:33:04 +01:00
simulation.go types.InSlice() -> slices.Contains() (#2246) 2023-05-31 12:39:22 +02:00
support.go minor refactor to pkg/types, cscli machines (#2270) 2023-06-08 15:08:51 +02:00
tables.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
utils.go Use same levenshtein package for cscli, ent, hcl (#2359) 2023-07-18 11:30:14 +02:00
utils_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00