mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 02:56:21 +00:00
add feature in issue #585
this should only be temporary due the silly amounts of syscalls involved ideally we would create a new escaped string and write that directly via fputs
This commit is contained in:
@@ -1766,6 +1766,20 @@ static struct cmd_t command_defs[] =
|
||||
"/script run myscript",
|
||||
"/script show somescript")
|
||||
},
|
||||
|
||||
{ "/export",
|
||||
cmd_export, parse_args, 1, 1, NULL,
|
||||
CMD_NOTAGS
|
||||
CMD_SYN(
|
||||
"/export <filepath>")
|
||||
CMD_DESC(
|
||||
"Exports contacts to a csv file.")
|
||||
CMD_ARGS(
|
||||
{ "<filepath>", "Path to the output file." })
|
||||
CMD_EXAMPLES(
|
||||
"/export /path/to/output.cxv",
|
||||
"/export ~/contacts.csv")
|
||||
},
|
||||
};
|
||||
|
||||
static Autocomplete commands_ac;
|
||||
|
||||
Reference in New Issue
Block a user