From 83d4ce49b05e83eec4157d0ace5d2acfd2a233bf Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 24 Apr 2019 21:29:22 -0700 Subject: [PATCH] modules/console: Add a stringify test cmd. --- modules/console.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index b27cd61dd..69da9cc81 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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) //