Closed japaric closed 10 months ago
Attention: 117 lines
in your changes are missing coverage. Please review.
Comparison is base (
870d15b
) 55.88% compared to head (9d04eb6
) 56.71%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
this PR makes sudo's CLI validation more strict.
now the flags associated to different actions (e.g. run, list, validate) are encoded using structs.
this eliminates the possibility of an unrelated flag, e.g. --user, making into the execution of an action, e.g. --remove-timestamp
diagnostics are now more helpful as they point out what the conflicting flags are
fixes #788 fixes #787 closes #774
this is best reviewed on a commit by commit basis
we could make do without the 'move crate::cli into crate::sudo' commit but that module being in the root of the crate was bothering me
I would like to refactor the Context API and avoid the
OptionsForContext
struct but I held off for this particular PR