mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
nix key: no need for progressBar
otherwise the output will be invisible in common terminal configurations
This commit is contained in:
parent
28dddde0ac
commit
ca6fdfd2c3
1 changed files with 2 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ struct CmdKeyGenerateSecret : Command
|
||||||
if (!keyName)
|
if (!keyName)
|
||||||
throw UsageError("required argument '--key-name' is missing");
|
throw UsageError("required argument '--key-name' is missing");
|
||||||
|
|
||||||
|
stopProgressBar();
|
||||||
writeFull(STDOUT_FILENO, SecretKey::generate(*keyName).to_string());
|
writeFull(STDOUT_FILENO, SecretKey::generate(*keyName).to_string());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -195,6 +196,7 @@ struct CmdKeyConvertSecretToPublic : Command
|
||||||
void run() override
|
void run() override
|
||||||
{
|
{
|
||||||
SecretKey secretKey(drainFD(STDIN_FILENO));
|
SecretKey secretKey(drainFD(STDIN_FILENO));
|
||||||
|
stopProgressBar();
|
||||||
writeFull(STDOUT_FILENO, secretKey.toPublicKey().to_string());
|
writeFull(STDOUT_FILENO, secretKey.toPublicKey().to_string());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue