mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Refactor: use optionalBracket in nix search
This commit is contained in:
parent
5dcfddf997
commit
583f5e37fc
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ struct CmdSearch : InstallableValueCommand, MixJSON
|
||||||
logger->cout(
|
logger->cout(
|
||||||
"* %s%s",
|
"* %s%s",
|
||||||
wrap("\e[0;1m", hiliteMatches(attrPath2, attrPathMatches, ANSI_GREEN, "\e[0;1m")),
|
wrap("\e[0;1m", hiliteMatches(attrPath2, attrPathMatches, ANSI_GREEN, "\e[0;1m")),
|
||||||
name.version != "" ? " (" + name.version + ")" : "");
|
optionalBracket(" (", name.version, ")"));
|
||||||
if (description != "")
|
if (description != "")
|
||||||
logger->cout(
|
logger->cout(
|
||||||
" %s", hiliteMatches(description, descriptionMatches, ANSI_GREEN, ANSI_NORMAL));
|
" %s", hiliteMatches(description, descriptionMatches, ANSI_GREEN, ANSI_NORMAL));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue