Add colons to non-verb categories in cli.display.

This commit is contained in:
Dominik Picheta 2016-12-21 22:11:47 +01:00
commit 17ddbc3214
3 changed files with 4 additions and 3 deletions

View file

@ -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.

View file

@ -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

View file

@ -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):