Files
scoutfs/utils/src/cmd.h
Andy Grover e0a2175c2e Use argp info instead of duplicating for cmd_register()
Make it static and then use it both for argp_parse as well as
cmd_register_argp.

Split commands into five groups, to help understanding of their
usefulness.

Mention that each command has its own help text, and that we are being
fancy to keep the user from having to give fs path.

Signed-off-by: Andy Grover <agrover@versity.com>
2021-01-12 16:29:42 -08:00

16 lines
299 B
C

#ifndef _CMD_H_
#define _CMD_H_
#define GROUP_CORE 0
#define GROUP_INFO 1
#define GROUP_SEARCH 2
#define GROUP_AGENT 3
#define GROUP_DEBUG 4
void cmd_register_argp(char *name, struct argp *argp, int group,
int (*func)(int argc, char **argv));
char cmd_execute(int argc, char **argv);
#endif