simon-git: caltrap (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Feb 25 08:33:58 GMT 2017
TL;DR:
b5349ba Add a --machine-readable option for list mode.
Repository: https://git.tartarus.org/simon/caltrap.git
On the web: https://git.tartarus.org/?p=simon/caltrap.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-02-25 08:33:58
commit b5349ba175316c0e04d58f544ccdd5430ee606f3
web diff https://git.tartarus.org/?p=simon/caltrap.git;a=commitdiff;h=b5349ba175316c0e04d58f544ccdd5430ee606f3;hp=fd862d3207948b95a45bb569d43e248906413672
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Feb 25 08:11:48 2017 +0000
Add a --machine-readable option for list mode.
I don't know why I never thought of doing this before - I actually had
a script elsewhere that was parsing the escape sequences output from
caltrap -l, and somehow it never occurred to me to instead add a mode
where they were replaced by something easy to parse in the first
place.
This mode gives basically the same semantic output as normal list
mode, but every output line has a nice simple format that a script can
parse. Comment in list.c explains the format.
caltrap.h | 3 ++-
list.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++----------
main.c | 5 +++-
3 files changed, 72 insertions(+), 14 deletions(-)
More information about the tartarus-commits
mailing list