réplica de
https://github.com/Arnau478/quark.git
synced 2024-05-08 01:56:29 +02:00
Basic shell
This commit is contained in:
pare
704e219c6c
commit
dc4866b518
13
src/kernel/shell.c
Normal file
13
src/kernel/shell.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "shell.h"
|
||||
#include "lib/stdio.h"
|
||||
#include "lib/string.h"
|
||||
|
||||
int shell_run(char *cmd){
|
||||
if(!strcmp(cmd, "HELLO")){
|
||||
printf("Hello!\n");
|
||||
}
|
||||
else{
|
||||
printf("SHELL: Unknown command \"%s\"\n", cmd);
|
||||
return 127;
|
||||
}
|
||||
}
|
3
src/kernel/shell.h
Normal file
3
src/kernel/shell.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
int shell_run();
|
Loading…
Referencia en una nova incidència