aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a4fd25d..c13c14a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,6 +14,13 @@
#define DATABASE_PATH (FTAG_ROOT "/ftag.sqlite3")
+/* TODO: read the configuration from a file
+
+ This would allow working with different databases with the same ftag
+ binary and moving the database. */
+
+/* TODO: add options for encrypting files using GPG */
+
/* Structure that aims at making parsing commands and sub-commands options
* easy. The work is done by the parse_args function. */
struct ftag_command {
@@ -1075,6 +1082,13 @@ int main(int argc, char *argv[])
{.name = "help", .func = ftag_help},
{.name = "query", .func = ftag_query},
{.name = "tag", .func = ftag_tag}
+ /* TODO: add a "sync" command
+
+ The aim is to be able to synchronize ftag data (database and
+ files) across multiple machines. With the current approach, I
+ think we cannot avoid transferring the whole database at
+ every synchonization. For the files however, we should be
+ able to only transfer the new files, maybe using rsync. */
};
const int toplevel_command_count = sizeof(toplevel_commands) / sizeof(struct ftag_command);
parse_args(argc-1, argv+1, toplevel_commands, toplevel_command_count);