Skip to content
Snippets Groups Projects
Commit def352af authored by Sébastien Gendre's avatar Sébastien Gendre
Browse files

Main use command_exec() to run a commande

parent 1efab4e9
No related branches found
No related tags found
No related merge requests found
......@@ -12,14 +12,13 @@ int main(int argc, char *argv[])
{
char * user_input;
cmd_t command;
int command_parse_result = 0;
user_input = calloc(LIMIT_USER_INPUT_MAX_LENGTH, sizeof(char));
while(1){
interface_ask_user_input(user_input);
command_parse_result = command_from_str(user_input, &command);
interface_print_command(command);
command_from_str(user_input, &command);
command_exec(&command);
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment