0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02:00

modules/console: Add a stringify test cmd.

This commit is contained in:
Jason Volk 2019-04-24 21:29:22 -07:00
parent 57d2cc9350
commit 83d4ce49b0

View file

@ -313,6 +313,13 @@ console_cmd__test(opt &out, const string_view &line)
return true;
}
bool
console_cmd__stringify(opt &out, const string_view &line)
{
out << json::value{line} << std::endl;
return true;
}
//
// Time cmd prefix (like /usr/bin/time)
//