crowdsec/cmd/crowdsec-cli
mmetc a32aa96752
feature flags (#1933)
Package fflag provides a simple feature flag system.

 Feature names are lowercase and can only contain letters, numbers, undercores
 and dots.

 good: "foo", "foo_bar", "foo.bar"
 bad: "Foo", "foo-bar"

 A feature flag can be enabled by the user with an environment variable
 or by adding it to {ConfigDir}/feature.yaml

 I.e. CROWDSEC_FEATURE_FOO_BAR=true
 or in feature.yaml:
```
 ---
 - foo_bar
```

 If the variable is set to false, the feature can still be enabled
 in feature.yaml. Features cannot be disabled in the file.

 A feature flag can be deprecated or retired. A deprecated feature flag is
 still accepted but a warning is logged. A retired feature flag is ignored
 and an error is logged.

 A specific deprecation message is used to inform the user of the behavior
 that has been decided when the flag is/was finally retired.
2022-12-20 16:11:51 +01:00
..
alerts.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
alerts_table.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
bouncers.go Suggest bouncers and machines to delete (#1896) 2022-12-05 15:39:54 +01:00
bouncers_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
capi.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
collections.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
completion.go Windows Support (#1159) 2022-05-17 12:14:59 +02:00
config.go cscli config show: print host/port/user/dbname when driver=pgx (fix #1866) (#1870) 2022-11-17 11:07:37 +00:00
console.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
console_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
dashboard.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
decisions.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01: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 rename pkg/cstest -> pkg/hubtest (#1811) 2022-10-17 09:24:07 +02:00
hub.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
hubtest.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
hubtest_table.go rename pkg/cstest -> pkg/hubtest (#1811) 2022-10-17 09:24:07 +02:00
lapi.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
machines.go Suggest bouncers and machines to delete (#1896) 2022-12-05 15:39:54 +01:00
machines_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
main.go feature flags (#1933) 2022-12-20 16:11:51 +01:00
main_test.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
Makefile make: accept BUILD_VENDOR_FLAGS variable (#1771) 2022-10-04 09:51:35 +02:00
messages.go functional tests, minor refactoring and lint/cleanup (#1570) 2022-06-06 15:24:48 +02:00
metrics.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
metrics_table.go Fix missing metrics cscli (#1809) 2022-10-13 15:49:41 +02:00
notifications.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
notifications_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
parsers.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
postoverflows.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
scenarios.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
simulation.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
support.go feature flags (#1933) 2022-12-20 16:11:51 +01:00
tables.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00
utils.go Suggest bouncers and machines to delete (#1896) 2022-12-05 15:39:54 +01:00
utils_table.go cscli: new tables, --color yes|no|auto option (#1763) 2022-10-07 11:05:35 +02:00