You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split this output into separate requests so you can show just config or distro output.
The config output should be improved so it is easier to read. For example instead of showing the repr hab.parsers.config.Config('not_set/child'), just show the uri, and some other useful information.
These can be very long so it might be nice to make these outputs use something like bash's less if possible.
Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
--- a/hab/__init__.py+++ b/hab/__init__.py@@ -174,12 +174,16 @@ class Resolver(object):
@classmethod
def dump_forest(cls, forest, style=None):
"""Convert a forest dictionary to a readable string"""
++ def mysort(items):+ return sorted(items, key=lambda item: item.name)+
if style is None:
style = anytree.render.AsciiStyle()
ret = []
- for tree_name in sorted(forest):+ for tree_name in sorted(forest, key=lambda n: n.lower()):
ret.append(tree_name)
- tree = str(anytree.RenderTree(forest[tree_name], style))+ tree = str(anytree.RenderTree(forest[tree_name], style, childiter=mysort))
for line in tree.split("\n"):
ret.append(" {}".format(line))
return "\n".join(ret)
Description
Split this output into separate requests so you can show just config or distro output.
The config output should be improved so it is easier to read. For example instead of showing the repr
hab.parsers.config.Config('not_set/child')
, just show the uri, and some other useful information.These can be very long so it might be nice to make these outputs use something like bash's less if possible.
Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: