aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 14:42:25 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 14:42:25 -0800
commitb81d1910dbd731326ce2d31db134820c14acdc76 (patch)
tree73224cdc4fedaf8afc5d060149cddc16031371f0 /toolsrc/src
parent45eee10708a97a90566af8ab7d781e89b255055b (diff)
downloadvcpkg-b81d1910dbd731326ce2d31db134820c14acdc76.tar.gz
vcpkg-b81d1910dbd731326ce2d31db134820c14acdc76.zip
[vcpkg search] Use System::println() instead of iostream + iomanip
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/commands_search.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/toolsrc/src/commands_search.cpp b/toolsrc/src/commands_search.cpp
index 267f9a3d4..d59a338ac 100644
--- a/toolsrc/src/commands_search.cpp
+++ b/toolsrc/src/commands_search.cpp
@@ -1,8 +1,6 @@
#include "vcpkg_Commands.h"
#include "vcpkg_System.h"
#include "vcpkg.h"
-#include <iostream>
-#include <iomanip>
namespace fs = std::tr2::sys;
@@ -36,10 +34,10 @@ namespace vcpkg
static void do_print(const SourceParagraph& source_paragraph)
{
- std::cout << std::left
- << std::setw(20) << source_paragraph.name << ' '
- << std::setw(16) << source_paragraph.version << ' '
- << shorten_description(source_paragraph.description) << '\n';
+ System::println("%-20s %-16s %s",
+ source_paragraph.name,
+ source_paragraph.version,
+ shorten_description(source_paragraph.description));
}
void search_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths)