qvm_ls.py : add template tree mode#365
Draft
RandyTheOtter wants to merge 1 commit intoQubesOS:mainfrom
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add template tree mode (
-T), because I like it.Almost exactly as network tree, but returns tree of templates, i.e.:
This is by no means complete, I pretty much just crammed my code the same way
sort_to_treeis integrated into the program.To do:
Maybe do, if people want it:
--tree TYPEis a better choice than--treeand--ttree?What I would personally like to do, but probably won't get there:
treedo it better.I don't have a dev setup, so no testing with
mainorrelease4.3can be done by me, but similar change to 4.2 version ofqvm_ls.pyworks.(Is there a way to somehow install these packages over 4.2 stuff without breaking anything?)
Also, I've noticed that
sort_to_treesays that it returns a list of sets, which isn't true, it returns a list of tuples.