réplica de
https://github.com/Arnau478/quark.git
synced 2024-11-23 12:58:07 +01:00
Basic shell
This commit is contained in:
pare
704e219c6c
commit
dc4866b518
S'han modificat 2 arxius amb 16 adicions i 0 eliminacions
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