1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 21:46:01 +01:00

nix key: no need for progressBar

otherwise the output will be invisible in common terminal configurations
This commit is contained in:
Tom Bereknyei 2023-11-06 10:29:37 -05:00
parent 28dddde0ac
commit ca6fdfd2c3

View file

@ -174,6 +174,7 @@ struct CmdKeyGenerateSecret : Command
if (!keyName)
throw UsageError("required argument '--key-name' is missing");
stopProgressBar();
writeFull(STDOUT_FILENO, SecretKey::generate(*keyName).to_string());
}
};
@ -195,6 +196,7 @@ struct CmdKeyConvertSecretToPublic : Command
void run() override
{
SecretKey secretKey(drainFD(STDIN_FILENO));
stopProgressBar();
writeFull(STDOUT_FILENO, secretKey.toPublicKey().to_string());
}
};