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:
Will Song
2015-11-23 20:09:51 -06:00
parent a2f5e921f2
commit fa6a26c6fd
3 changed files with 69 additions and 0 deletions

View File

@@ -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;