diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 13a02c8..864b073 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -1875,9 +1875,9 @@ } else { try { dub.fetch(name, Dependency.any, location, fetchOpts); - logInfo( - "Please note that you need to use `dub run ` " ~ - "or add it to dependencies of your package to actually use/run it."); + logInfo("Finished", Color.green, "package fetched"); + logInfo("Please note that you need to use `dub run ` or add it"); + logInfo("to dependencies of your package to actually use/run it."); } catch(Exception e){ logInfo("Getting a release version failed: %s", e.msg); @@ -2086,10 +2086,10 @@ const pname = pinfo.name; const pvlim = Dependency(pinfo.version_ == "" ? "*" : pinfo.version_); enforceUsage(app_args.length == 0, "The list command supports no application arguments."); - logInfo("Packages present in the system and known to dub:"); + logInfoNoTag("Packages present in the system and known to dub:"); foreach (p; dub.packageManager.getPackageIterator()) { if ((pname == "" || pname == p.name) && pvlim.matches(p.version_)) - logInfo(" %s %s: %s", p.name, p.version_, p.path.toNativeString()); + logInfo(" %s %s: %s", p.name.color(Mode.bold), p.version_, p.path.toNativeString()); } logInfo(""); return 0; @@ -2124,9 +2124,9 @@ justify += (~justify & 3) + 1; // round to next multiple of 4 foreach (desc, matches; res) { - logInfo("==== %s ====", desc); + logInfoNoTag("%s", desc); foreach (m; matches) - logInfo("%s%s", leftJustify(m.name ~ " (" ~ m.version_ ~ ")", justify), m.description); + logInfoNoTag(" %s%s", leftJustify(m.name ~ " (" ~ m.version_ ~ ")", justify), m.description); } return 0; }