diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-29 16:51:11 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-29 16:51:11 +0100 |
| commit | 742ebb0218ce278b9e15e0f683db50c717559192 (patch) | |
| tree | dbc6e4ff0fc9af735f60ddc9b3617b4aff80950b /src/main.c | |
| parent | 797a9ce3013d5da138d58c734fd1475e35be8ef9 (diff) | |
Add todos
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); |
