Add colons to non-verb categories in cli.display.
This commit is contained in:
parent
87567161b8
commit
17ddbc3214
3 changed files with 4 additions and 3 deletions
|
|
@ -517,7 +517,8 @@ proc installFromDir(dir: string, latest: bool, options: Options,
|
|||
result.paths.add pkgDestDir
|
||||
result.pkg = pkgInfo
|
||||
|
||||
display(pkgInfo.name, " installed successfully.", priority = HighPriority)
|
||||
display("Success:", pkgInfo.name & " installed successfully.",
|
||||
Success, HighPriority)
|
||||
|
||||
proc getNimbleTempDir(): string =
|
||||
## Returns a path to a temporary directory.
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ proc displayTip*() =
|
|||
if globalCLI.suppressionCount > 0:
|
||||
let msg = "$1 messages have been suppressed, use --verbose to show them." %
|
||||
$globalCLI.suppressionCount
|
||||
display("Tip", msg, Warning, HighPriority)
|
||||
display("Tip:", msg, Warning, HighPriority)
|
||||
|
||||
proc setVerbosity*(level: Priority) =
|
||||
globalCLI.level = level
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ proc getInstalledPkgs*(libsDir: string, options: Options):
|
|||
let (name, version) = getNameVersion(path)
|
||||
return tmplt % [name, version, msg]
|
||||
|
||||
display("Loading", "list of installed packages", priority = HighPriority)
|
||||
display("Loading", "list of installed packages", priority = MediumPriority)
|
||||
|
||||
result = @[]
|
||||
for kind, path in walkDir(libsDir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue