refactor(cli): make main more clean and moving subcommands to the commands files

This commit is contained in:
lisk77 2025-11-23 00:38:25 +01:00
parent 58079f26da
commit 8aa95da2a1
3 changed files with 796 additions and 786 deletions

21
include/commands.h Normal file
View file

@ -0,0 +1,21 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include "base_file_buffer.h"
#include "config.h"
#include "commit.h"
#include "hash.h"
#include "object.h"
#include "utilities.h"
void usage(int);
int init();
int diff(char*, char*);
int status();
int commit(int, char**);
int commit_log();