summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index ddb02a8..f271abc 100644
--- a/main.c
+++ b/main.c
@@ -59,6 +59,7 @@ int usage(const char *cmd)
59 "verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n" 59 "verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n"
60 "search {basedir} {uid} {regex} Searches posts by content\n" 60 "search {basedir} {uid} {regex} Searches posts by content\n"
61 "export_csv {basedir} {uid} Exports followers, lists, MUTEd and bookmarks to CSV\n" 61 "export_csv {basedir} {uid} Exports followers, lists, MUTEd and bookmarks to CSV\n"
62 "export_posts {basedir} {iod} Exports all posts to outbox.json\n"
62 "alias {basedir} {uid} {account} Sets account (@user@host or actor url) as an alias\n" 63 "alias {basedir} {uid} {account} Sets account (@user@host or actor url) as an alias\n"
63 "migrate {basedir} {uid} Migrates to the account defined as the alias\n" 64 "migrate {basedir} {uid} Migrates to the account defined as the alias\n"
64 "import_csv {basedir} {uid} Imports data from CSV files\n" 65 "import_csv {basedir} {uid} Imports data from CSV files\n"
@@ -308,6 +309,11 @@ int main(int argc, char *argv[])
308 return 0; 309 return 0;
309 } 310 }
310 311
312 if (strcmp(cmd, "export_posts") == 0) { /** **/
313 export_posts(&snac);
314 return 0;
315 }
316
311 if (strcmp(cmd, "import_csv") == 0) { /** **/ 317 if (strcmp(cmd, "import_csv") == 0) { /** **/
312 import_csv(&snac); 318 import_csv(&snac);
313 return 0; 319 return 0;