commit | a4d7fe0f22ba9cb49cf1ca0549375a3167e3a036 | [log] [tgz] |
---|---|---|
author | Junxiao Shi <git@mail1.yoursunny.com> | Fri Jul 20 06:51:41 2018 -0600 |
committer | Junxiao Shi <git@mail1.yoursunny.com> | Fri Jul 20 06:51:41 2018 -0600 |
tree | 80ae51d89fc76982d91f1b0ecaddf5d3ba639834 | |
parent | 457f135980286beaecc32798dbaee277cca6fa66 [diff] [blame] |
tools: implement 'nfdc cs erase' command refs #4318 Change-Id: If4dc401a3efff44a5bf4b3074d21797f8384cf9f
diff --git a/tools/nfdc/format-helpers.cpp b/tools/nfdc/format-helpers.cpp index d898dc3..fa72512 100644 --- a/tools/nfdc/format-helpers.cpp +++ b/tools/nfdc/format-helpers.cpp
@@ -192,6 +192,12 @@ return os << (v.flag ? "on" : "off"); } +std::ostream& +operator<<(std::ostream& os, YesNo v) +{ + return os << (v.flag ? "yes" : "no"); +} + std::string formatTimestamp(time::system_clock::TimePoint t) {