Skip to content

Some CLI improvements

Carlos Garnacho requested to merge wip/carlosg/cli-improvements into master

Implement some of the CLI improvements discussed in irc/meetings, and some more

  • tracker-miner-fs/tracker-extract now persistently log extraction errors in keyfiles at ~/.cache/tracker3/files/errors
    • tracker3 status lists those errors
    • tracker3 status $pattern prints detailed information (incl. SPARQL if available)
    • tracker-extract no longer retries on failed extraction, it was generally pointless and makes things simpler here.
  • Changed tracker index to be about configured locations
    • Plain tracker index lists locations
    • tracker index --add [--recursive] $dir adds a location
    • tracker index --remove $dir removes a location
  • Made commands with long output transparently redirect to a pager
  • Changed tracker daemon to track processes via DBus names
    • tracker-extract is no longer a "miner", since it gets started via other means
    • No more looping through /proc, always a win
  • Fixes to tracker search, so works without --all
  • Some tidying of the output at places

There's some (sub)commands that might welcome a look to modernize the output:

  • tracker search output now feels odd compared to the column-based output in the just added places, and too colourful. It would also welcome a more critic eye wrt parseability...
  • tracker daemon and tracker reset are still too oddly specific about killing/terminating PIDs

But these are left as low hanging fruits.

Merge request reports