diff options
| author | shtrophic <christoph@liebender.dev> | 2024-12-05 17:16:57 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2024-12-05 17:16:57 +0100 |
| commit | 7e743e8918e0a4d058217ec33ab745b1f1a97335 (patch) | |
| tree | 9aaed93dff31ccfbc63b4302dd8531a47c11f9bf /main.c | |
| parent | cbd89bdf16674b577cee7d7533ea69014cb307e7 (diff) | |
| parent | 221eeabf0c00f076ee8ae670811aabbc5b11a826 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -51,7 +51,9 @@ int usage(void) printf("export_csv {basedir} {uid} Exports data as CSV files into current directory\n"); printf("alias {basedir} {uid} {account} Sets account (@user@host or actor url) as an alias\n"); printf("migrate {basedir} {uid} Migrates to the account defined as the alias\n"); - printf("import_csv {basedir} {uid} Imports data from CSV files into current directory\n"); + printf("import_csv {basedir} {uid} Imports data from CSV files in the current directory\n"); + printf("import_list {basedir} {uid} {file} Imports a Mastodon CSV list file\n"); + printf("import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n"); return 1; } @@ -589,6 +591,18 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "import_list") == 0) { /** **/ + import_list_csv(&snac, url); + + return 0; + } + + if (strcmp(cmd, "import_block_list") == 0) { /** **/ + import_blocked_accounts_csv(&snac, url); + + return 0; + } + if (strcmp(cmd, "note") == 0) { /** **/ xs *content = NULL; xs *msg = NULL; |