tracee-rules help text and UX needs improvement #495
grantseltzer
started this conversation in
Development
Replies: 1 comment 2 replies
-
thanks @grantseltzer , good comments. regarding the last part about the input flag, I think we should align with tracee-ebpf's UX.
stdin can be given as a file (like in the readme) or we can create an alias for it |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are some things confusing about the tracee-rules help text:
--rules
help says 'select which rules to load'. It should be made clear that this is selection from the output of--list
.--rules-dir
says 'directory where to search for rules'. It should be made clear how the files in this directory are selected. Is this only rego files? or Go plugins?--rules-dir
add the added files to the output of--list
?These are more about UX then about the help text itself:
--help
text.--tracee-file
is only looking for gob files, would it be more clear to name it--gob-file
?--stdin-as
) which reads JSON from standard input. We also have a flag for reading gob from any file (including stdin). I propose the following:--input-format
flag where the user can specifyjson
orgob
--input-file
flag where the user can specify a file (including stdin)Beta Was this translation helpful? Give feedback.
All reactions