troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

Add option in initctl cond dump to get only specific type of conditions. #272

Closed hongkongkiwi closed 2 years ago

hongkongkiwi commented 2 years ago

It would be great to have an option to only show only a specific type of conditions when using initctl cond dump.

Perhaps we could support filtering by the first path of the path e.g. initctl cond dump usr initctl cond dump service initctl cond dump task initctl cond dump net initctl cond dump pid

This would make it very easy to view conditions of a specific type quickly.

troglobit commented 2 years ago

Good idea, I like it!

troglobit commented 2 years ago

Basic prefix matching added in 6286ede