mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Reduce visual clutter in the debugger
This commit is contained in:
parent
081dc5daa1
commit
6414cd259e
2 changed files with 14 additions and 5 deletions
|
@ -243,10 +243,21 @@ static std::ostream & showDebugTrace(std::ostream & out, const PosTable & positi
|
|||
return out;
|
||||
}
|
||||
|
||||
static bool isFirstRepl = true;
|
||||
|
||||
void NixRepl::mainLoop()
|
||||
{
|
||||
std::string error = ANSI_RED "error:" ANSI_NORMAL " ";
|
||||
notice("Welcome to Nix " + nixVersion + ". Type :? for help.\n");
|
||||
if (isFirstRepl) {
|
||||
std::string_view debuggerNotice = "";
|
||||
if (state->debugRepl) {
|
||||
debuggerNotice = " debugger";
|
||||
}
|
||||
notice("Nix %1%%2%\nType :? for help.", nixVersion, debuggerNotice);
|
||||
}
|
||||
|
||||
if (isFirstRepl) {
|
||||
isFirstRepl = false;
|
||||
}
|
||||
|
||||
loadFiles();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue