<table><tr><td style="">michaelh created this revision.<br />michaelh added a reviewer: Frameworks.<br />michaelh added a project: Frameworks.<br />michaelh requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9712" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently balooctl status produces 2-3 output lines per file like so:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">File: /tmp/otto/A/A.txt
Basic Indexing: Disabled
File: /tmp/otto/B/B.txt
Basic Indexing: Done</pre></div>
<p>This patch produces 1 line per file which is easier to parse.</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Indexing disabled:/tmp/otto/A/A.txt
Content indexing done:/tmp/otto/B/B.txt</pre></div>
<p>Reason:<br />
balooctl status is a useful too because sometimes files stay in the 'scheduled' state forever.<br />
Instead of rebuilding the database this patch would allow for</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">balooctl status * */* | grep 'scheduled:' | cut -d':' -f2 - | (index manually)</pre></div></div></div><br /><div><strong>TEST PLAN</strong><div><p>compile & run</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>ctl</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9712" rel="noreferrer">https://phabricator.kde.org/D9712</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/tools/balooctl/statuscommand.cpp</div></div></div><br /><div><strong>To: </strong>michaelh, Frameworks<br /><strong>Cc: </strong>dfaure, ngraham<br /></div>