diff options
| author | grunfink <grunfink@comam.es> | 2025-06-19 19:19:08 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-06-19 19:19:08 +0200 |
| commit | a07458f408c304ae9d037c95bee77dbf4522f3f0 (patch) | |
| tree | 702ba0dfdc34ae58c76d784f33f171d3523e2254 /main.c | |
| parent | 8c9eb18099370f34a577859d7fddea1d5f412612 (diff) | |
New command-line option export_posts.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -59,6 +59,7 @@ int usage(const char *cmd) "verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n" "search {basedir} {uid} {regex} Searches posts by content\n" "export_csv {basedir} {uid} Exports followers, lists, MUTEd and bookmarks to CSV\n" + "export_posts {basedir} {iod} Exports all posts to outbox.json\n" "alias {basedir} {uid} {account} Sets account (@user@host or actor url) as an alias\n" "migrate {basedir} {uid} Migrates to the account defined as the alias\n" "import_csv {basedir} {uid} Imports data from CSV files\n" @@ -308,6 +309,11 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "export_posts") == 0) { /** **/ + export_posts(&snac); + return 0; + } + if (strcmp(cmd, "import_csv") == 0) { /** **/ import_csv(&snac); return 0; |