diff options
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index bc2ee121..3e9adc9c 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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.csv", + "/export ~/contacts.csv") + }, }; static Autocomplete commands_ac; |