mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
[vcpkg search] Use System::println() instead of iostream + iomanip
This commit is contained in:
parent
45eee10708
commit
b81d1910db
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user