initial commit
This commit is contained in:
34
src/explore.c
Normal file
34
src/explore.c
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "commands.h"
|
||||
|
||||
#include <blue/cmd.h>
|
||||
|
||||
enum {
|
||||
ARG_FILE,
|
||||
};
|
||||
|
||||
static int explore(
|
||||
const b_command *self,
|
||||
const b_arglist *opt,
|
||||
const b_array *args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
B_COMMAND(CMD_EXPLORE, CMD_ROOT)
|
||||
{
|
||||
B_COMMAND_NAME("explore");
|
||||
B_COMMAND_SHORT_NAME('E');
|
||||
B_COMMAND_DESC(
|
||||
"start a basic shell to browse the contents of an ec3 file");
|
||||
B_COMMAND_FLAGS(B_COMMAND_SHOW_HELP_BY_DEFAULT);
|
||||
B_COMMAND_FUNCTION(explore);
|
||||
|
||||
B_COMMAND_HELP_OPTION();
|
||||
|
||||
B_COMMAND_ARG(ARG_FILE)
|
||||
{
|
||||
B_ARG_NAME("file");
|
||||
B_ARG_NR_VALUES(1);
|
||||
B_ARG_DESC("the file to explore");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user