Skip to content

Commit

Permalink
nix key: no need for progressBar
Browse files Browse the repository at this point in the history
otherwise the output will be invisible in common terminal configurations
  • Loading branch information
tomberek committed Nov 6, 2023
1 parent 28dddde commit ca6fdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nix/sigs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
};
Expand All @@ -195,6 +196,7 @@ struct CmdKeyConvertSecretToPublic : Command
void run() override
{
SecretKey secretKey(drainFD(STDIN_FILENO));
stopProgressBar();
writeFull(STDOUT_FILENO, secretKey.toPublicKey().to_string());
}
};
Expand Down

0 comments on commit ca6fdfd

Please sign in to comment.