Feature exclude tactic name (#4593)
* Added new cli flag to exclude tactic name in rule file name * added a shortcut for the flag and adjusted CLI readme * Add no tactic flag also to import to prevent warnings * Added info about unit test * version bump * Added no_tactic_filename as config option + fixed linting * pyproject version bump --------- Co-authored-by: Mika Ayenson, PhD <Mikaayenson@users.noreply.github.com> Co-authored-by: Eric Forte <119343520+eric-forte-elastic@users.noreply.github.com>
This commit is contained in:
@@ -265,6 +265,7 @@ Options:
|
||||
-e, --overwrite-exceptions Overwrite exceptions in existing rules
|
||||
-ac, --overwrite-action-connectors
|
||||
Overwrite action connectors in existing rules
|
||||
-nt, --no-tactic-filename Allow rule filenames without tactic prefix. Use this if rules have been exported with this flag.
|
||||
-h, --help Show this message and exit.
|
||||
```
|
||||
|
||||
@@ -520,6 +521,7 @@ Options:
|
||||
-e, --export-exceptions Include exceptions in export
|
||||
-s, --skip-errors Skip errors when exporting rules
|
||||
-sv, --strip-version Strip the version fields from all rules
|
||||
-nt, --no-tactic-filename Exclude tactic prefix in exported filenames for rules. Use same flag for import-rules to prevent warnings and disable its unit test.
|
||||
-h, --help Show this message and exit.
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user