mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Use light box drawing symbols
This commit is contained in:
parent
678301072f
commit
e91f32f2b5
3 changed files with 6 additions and 6 deletions
|
@ -459,9 +459,9 @@ void ignoreException();
|
|||
|
||||
|
||||
/* Tree formatting. */
|
||||
constexpr char treeConn[] = "╠═══";
|
||||
constexpr char treeLast[] = "╚═══";
|
||||
constexpr char treeLine[] = "║ ";
|
||||
constexpr char treeConn[] = "├───";
|
||||
constexpr char treeLast[] = "└───";
|
||||
constexpr char treeLine[] = "│ ";
|
||||
constexpr char treeNull[] = " ";
|
||||
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ struct CmdWhyDepends : SourceExprCommand
|
|||
std::cout << fmt("%s%s%s%s" ANSI_NORMAL "\n",
|
||||
firstPad,
|
||||
node.visited ? "\e[38;5;244m" : "",
|
||||
firstPad != "" ? "=> " : "",
|
||||
firstPad != "" ? "→ " : "",
|
||||
pathS);
|
||||
|
||||
if (node.path == dependencyPath && !all
|
||||
|
|
|
@ -6,7 +6,7 @@ drvPath=$(nix-instantiate dependencies.nix)
|
|||
|
||||
echo "derivation is $drvPath"
|
||||
|
||||
nix-store -q --tree "$drvPath" | grep '║ ╚═══.*builder1.sh'
|
||||
nix-store -q --tree "$drvPath" | grep '│ └───.*builder1.sh'
|
||||
|
||||
# Test Graphviz graph generation.
|
||||
nix-store -q --graph "$drvPath" > $TEST_ROOT/graph
|
||||
|
@ -24,7 +24,7 @@ if test -n "$dot"; then
|
|||
$dot < $TEST_ROOT/graph
|
||||
fi
|
||||
|
||||
nix-store -q --tree "$outPath" | grep '═══.*dependencies-input-2'
|
||||
nix-store -q --tree "$outPath" | grep '───.*dependencies-input-2'
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
|
|
Loading…
Reference in a new issue