From bcc7bc9baf46ca0a27703865daff729dd7f51363 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Fri, 21 Nov 2025 17:20:03 +0100 Subject: Add a bunch of to dos --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.c b/src/main.c index a69b4bb..1fdb506 100644 --- a/src/main.c +++ b/src/main.c @@ -19,6 +19,9 @@ struct ftag_command { /* Execute the command, eventually by parsing some options. FUNC may * shift ARGC and ARGV and call parse_args again. */ void (*func)(int argc, char **argv); + /* TODO: add help string + * This will allow dynamically generating the help message, + * maybe also add child ftag_commands */ }; /* Parse arguments using an array of available commands. ARGV[0] has to match @@ -596,6 +599,7 @@ static void ftag_tag(int argc, char **argv) const struct ftag_command tag_commands[] = { {.name = "add", .func = ftag_tag_add}, {.name = "list", .func = ftag_tag_list} + /* TODO: add an alias command */ }; int tag_command_count = sizeof(tag_commands) / sizeof(struct ftag_command); parse_args(argc, argv, tag_commands, tag_command_count); @@ -632,6 +636,11 @@ int main(int argc, char *argv[]) {.name = "help", .func = ftag_help}, {.name = "query", .func = ftag_query}, {.name = "tag", .func = ftag_tag} + /* TODO: add an export command For instance, "ftag export + ARCHIVE" exports files read on stdin to ARCHIVE.tar.gz or + ARCHIVE.zip. Typical usag would be "ftag query -t TAG0 -t TAG1 + | ftag export ARCHIVE". Maybe adding a "-e" (for "export") + option to ftag query is better.*/ }; const int toplevel_command_count = sizeof(toplevel_commands) / sizeof(struct ftag_command); parse_args(argc-1, argv+1, toplevel_commands, toplevel_command_count); -- cgit v1.2.3