Move ASCII graph to --graph
switch, and add a --tree
alternative & fallback
#465
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.
Currently we attempt to print the ASCII art box graph always at the end of
alr with --solve
. This has two problems: one, that wheneasy-graph
isn't installed a warning is always emitted. Two, that when installed, that graph can quickly become too large and may difficult using the rest of the output of--solve
(which may be the actual part one is interested in).With this PR, this ASCII graph is removed from
--solve
and emitted stand-alone using the--graph
switch, for when one is actually interested in that graph.As a fallback for when
easy-graph
isn't available, a tree representation is provided:This tree can also be obtained explicitly with
with --tree
. It shows in essence the same information than--solve
, but because of the explicit branching, it may be more readable in that regard.--solve
remains as the "text-only" more detailed output.