[tracker/wip/carlosg/cli-split: 1/4] tracker: Drop miner-related CLI commands from Tracker module



commit 7bd6b4cce0de53f43833a8b1b270087ead8f8e5f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 19 14:09:14 2019 +0100

    tracker: Drop miner-related CLI commands from Tracker module
    
    Those will move into tracker-miners territory, we will focus on allowing
    to install additional subcommands a-la git.

 src/tracker/meson.build             |   11 -
 src/tracker/tracker-config.c        |  212 -----
 src/tracker/tracker-config.h        |   39 -
 src/tracker/tracker-daemon.c        | 1755 ----------------------------------
 src/tracker/tracker-daemon.h        |   25 -
 src/tracker/tracker-dbus.c          |   70 --
 src/tracker/tracker-dbus.h          |   32 -
 src/tracker/tracker-extract.c       |  160 ----
 src/tracker/tracker-extract.h       |   25 -
 src/tracker/tracker-index.c         |  458 ---------
 src/tracker/tracker-index.h         |   25 -
 src/tracker/tracker-main.c          |   16 +-
 src/tracker/tracker-miner-manager.c | 1741 ----------------------------------
 src/tracker/tracker-miner-manager.h |  161 ----
 src/tracker/tracker-process.c       |  370 --------
 src/tracker/tracker-process.h       |   49 -
 src/tracker/tracker-reset.c         |  370 --------
 src/tracker/tracker-reset.h         |   25 -
 src/tracker/tracker-search.c        | 1791 -----------------------------------
 src/tracker/tracker-search.h        |   25 -
 src/tracker/tracker-status.c        |  600 ------------
 src/tracker/tracker-status.h        |   25 -
 src/tracker/tracker-tag.c           | 1109 ----------------------
 src/tracker/tracker-tag.h           |   25 -
 24 files changed, 1 insertion(+), 9118 deletions(-)
---
diff --git a/src/tracker/meson.build b/src/tracker/meson.build
index 75a822a1d..48bc3e7c5 100644
--- a/src/tracker/meson.build
+++ b/src/tracker/meson.build
@@ -1,20 +1,9 @@
 sources = [
-    'tracker-miner-manager.c',
     'tracker-main.c',
-    'tracker-config.c',
-    'tracker-daemon.c',
-    'tracker-dbus.c',
-    'tracker-extract.c',
     'tracker-help.c',
-    'tracker-index.c',
     'tracker-info.c',
-    'tracker-process.c',
-    'tracker-reset.c',
-    'tracker-search.c',
     'tracker-sparql.c',
     'tracker-sql.c',
-    'tracker-status.c',
-    'tracker-tag.c',
 ]
 
 executable('tracker', sources,
diff --git a/src/tracker/tracker-main.c b/src/tracker/tracker-main.c
index 50dc4bed5..fde5be4f6 100644
--- a/src/tracker/tracker-main.c
+++ b/src/tracker/tracker-main.c
@@ -28,17 +28,10 @@
 
 #include <libtracker-common/tracker-common.h>
 
-#include "tracker-daemon.h"
-#include "tracker-extract.h"
 #include "tracker-help.h"
-#include "tracker-index.h"
 #include "tracker-info.h"
-#include "tracker-reset.h"
-#include "tracker-search.h"
 #include "tracker-sparql.h"
 #include "tracker-sql.h"
-#include "tracker-status.h"
-#include "tracker-tag.h"
 
 const char usage_string[] =
        "tracker [--version] [--help]\n"
@@ -94,17 +87,10 @@ struct cmd_struct {
 };
 
 static struct cmd_struct commands[] = {
-       { "daemon", tracker_daemon, NEED_WORK_TREE, N_("Start, stop, pause and list processes responsible for 
indexing content") },
-       { "extract", tracker_extract, NEED_WORK_TREE, N_("Extract information from a file") },
        { "help", tracker_help, NEED_NOTHING, N_("Get help on how to use Tracker and any of these commands") 
},
-       { "info", tracker_info, NEED_WORK_TREE, N_("Show information known about local files or items 
indexed") }, 
-       { "index", tracker_index, NEED_NOTHING, N_("Backup, restore, import and (re)index by MIME type or 
file name") },
-       { "reset", tracker_reset, NEED_NOTHING,  N_("Reset or remove index and revert configurations to 
defaults") },
-       { "search", tracker_search, NEED_WORK_TREE, N_("Search for content indexed or show content by type") 
},
+       { "info", tracker_info, NEED_WORK_TREE, N_("Show information known about local files or items 
indexed") },
        { "sparql", tracker_sparql, NEED_WORK_TREE, N_("Query and update the index using SPARQL or search, 
list and tree the ontology") },
        { "sql", tracker_sql, NEED_WORK_TREE, N_("Query the database at the lowest level using SQL") },
-       { "status", tracker_status, NEED_NOTHING, N_("Show the indexing progress, content statistics and 
index state") },
-       { "tag", tracker_tag, NEED_WORK_TREE, N_("Create, list or delete tags for indexed content") },
        { "version", tracker_version, NEED_NOTHING, N_("Show the license and version in use") },
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]