From dfa0daea30fce10aaa4c6413eb5d13d9f906ed81 Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Wed, 19 Feb 2025 11:33:22 +0100 Subject: an array that stores all of the available commands --- main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 617f78d..88be4cc 100644 --- a/main.c +++ b/main.c @@ -74,7 +74,16 @@ void clear(); struct exec_command CommandsList[] = { - {"ls", ls}, + {"ls", list}, + {"make_dir", make_dir}, + {"remove_dir", remove_dir}, + {"remove_file", remove_file}, + {"copy_files", copy_files}, + {"move_files", move_files}, + {"print_cdirectory", print_cdirectory}, + {"change_directory", change_directory}, + {"clear", clear}, + {"echo", echo} }; // code functions -- cgit v1.2.3-70-g09d2