fs Fetch file contents

This commit is contained in:
2025-10-02 22:29:20 +02:00
parent 91d648ade4
commit bc2b115cb3
9 changed files with 115 additions and 32 deletions

19
user/fs/main.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdint.h>
#include <stddef.h>
#include <ulib.h>
extern void fs_fetch(void);
void main(void) {
if (argslen() == 0) {
return;
}
char *cmd = args()[0];
if (string_strcmp(cmd, "fetch") == 0) {
fs_fetch();
} else {
uprintf("fs: unknown command %s\n", cmd);
}
}