summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2025-02-19 11:33:47 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2025-02-19 11:33:47 +0100
commite7cf82f0a98d238cf3b6b6fd9a817714fb2cb81a (patch)
treec200e15724e347371277f113f318ce4edda51e37
parentdfa0daea30fce10aaa4c6413eb5d13d9f906ed81 (diff)
working on the body of the new features of the shell
-rw-r--r--main.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/main.c b/main.c
index 88be4cc..1eba34b 100644
--- a/main.c
+++ b/main.c
@@ -146,7 +146,32 @@ void ls(const char *path) {
closedir(dP);
}
-void clear() {
+void make_dir(const char *path) {
+ printf("made a new directory");
+}
+
+void remove_dir(const char *path) {
+ printf("removed a directory");
+}
+
+void remove_file(const char *path) {
+ printf("remove_file");
+}
+
+void copy_files(const char *arg) {
+ printf("copy file");
+}
+
+void move_files(const char *arg) {
+ printf("move file");
+}
+
+void clear(const char *arg) {
+ if (arg != NULL) {
+ printf("clear doesn't support any arguments, see help() for help");
+ return;
+ }
+
// clear the visible part of the terminal -> see man pages clear command
printf("\033[2J");
// clear the input buffer of the terminal -> see man pages clear command