mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +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. */
|
/* Tree formatting. */
|
||||||
constexpr char treeConn[] = "╠═══";
|
constexpr char treeConn[] = "├───";
|
||||||
constexpr char treeLast[] = "╚═══";
|
constexpr char treeLast[] = "└───";
|
||||||
constexpr char treeLine[] = "║ ";
|
constexpr char treeLine[] = "│ ";
|
||||||
constexpr char treeNull[] = " ";
|
constexpr char treeNull[] = " ";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
std::cout << fmt("%s%s%s%s" ANSI_NORMAL "\n",
|
std::cout << fmt("%s%s%s%s" ANSI_NORMAL "\n",
|
||||||
firstPad,
|
firstPad,
|
||||||
node.visited ? "\e[38;5;244m" : "",
|
node.visited ? "\e[38;5;244m" : "",
|
||||||
firstPad != "" ? "=> " : "",
|
firstPad != "" ? "→ " : "",
|
||||||
pathS);
|
pathS);
|
||||||
|
|
||||||
if (node.path == dependencyPath && !all
|
if (node.path == dependencyPath && !all
|
||||||
|
|
|
@ -6,7 +6,7 @@ drvPath=$(nix-instantiate dependencies.nix)
|
||||||
|
|
||||||
echo "derivation is $drvPath"
|
echo "derivation is $drvPath"
|
||||||
|
|
||||||
nix-store -q --tree "$drvPath" | grep '║ ╚═══.*builder1.sh'
|
nix-store -q --tree "$drvPath" | grep '│ └───.*builder1.sh'
|
||||||
|
|
||||||
# Test Graphviz graph generation.
|
# Test Graphviz graph generation.
|
||||||
nix-store -q --graph "$drvPath" > $TEST_ROOT/graph
|
nix-store -q --graph "$drvPath" > $TEST_ROOT/graph
|
||||||
|
@ -24,7 +24,7 @@ if test -n "$dot"; then
|
||||||
$dot < $TEST_ROOT/graph
|
$dot < $TEST_ROOT/graph
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nix-store -q --tree "$outPath" | grep '═══.*dependencies-input-2'
|
nix-store -q --tree "$outPath" | grep '───.*dependencies-input-2'
|
||||||
|
|
||||||
echo "output path is $outPath"
|
echo "output path is $outPath"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue