diff options
| author | default <nobody@localhost> | 2024-11-25 10:24:47 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-25 10:24:47 +0100 |
| commit | b3be8e06734c6428376514024af7cabf13774dce (patch) | |
| tree | f7e655e55c208270e729b9a0fec0ec22f8196282 /main.c | |
| parent | 2eff3ffb664d372d68ab2d953466d7ba946c96c2 (diff) | |
New cmdline ops 'import_list' and 'import_block_list'.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -52,6 +52,8 @@ int usage(void) 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_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; |