Add option to limit view to certain units #21
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I've had an itch to have an overview for some application consisting of over a dozen unit files, so I've searched for something like this. I'm just submitting this as a draft so you or others can have look to see if it's interesting.
This allows a user to limit the view to certain units, which makes it usable as a simple service front end for complex services:
This also allows one to show other unit types besides just
.service
. The UI doesn't support those, of course, but it seems to work fine with timers for now. And didn't even crash for.mount
.Caveats:
Other unit types besides
service
aren't fully supported by the rest of the app.Maybe using a short option for such a niche use case isn't really necessary.
Also I'm a complete newbie in Rust, so this may leak memory or other fluids.