D9712: balooctl status: produce parseable output
Michael Heidelbach
noreply at phabricator.kde.org
Sun Jan 7 17:16:14 UTC 2018
michaelh created this revision.
michaelh added a reviewer: Frameworks.
michaelh added a project: Frameworks.
michaelh requested review of this revision.
REVISION SUMMARY
Currently balooctl status produces 2-3 output lines per file like so:
File: /tmp/otto/A/A.txt
Basic Indexing: Disabled
File: /tmp/otto/B/B.txt
Basic Indexing: Done
This patch produces 1 line per file which is easier to parse.
Indexing disabled:/tmp/otto/A/A.txt
Content indexing done:/tmp/otto/B/B.txt
Reason:
balooctl status is a useful too because sometimes files stay in the 'scheduled' state forever.
Instead of rebuilding the database this patch would allow for
balooctl status * */* | grep 'scheduled:' | cut -d':' -f2 - | (index manually)
TEST PLAN
compile & run
REPOSITORY
R293 Baloo
BRANCH
ctl
REVISION DETAIL
https://phabricator.kde.org/D9712
AFFECTED FILES
src/tools/balooctl/statuscommand.cpp
To: michaelh, #frameworks
Cc: dfaure, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180107/9274ff67/attachment.html>
More information about the Kde-frameworks-devel
mailing list