Implementing XML

This commit is contained in:
2024-07-08 16:56:54 +05:30
commit d8d3c80ad4
95 changed files with 9150 additions and 0 deletions

26
include/command.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef __COMMAND_H
#define __COMMAND_H
#include <stddef.h>
enum {
CMD_SUCCESS = 0,
CMD_FAIL_EXEC,
CMD_FAIL_CMD
};
/*
* Defined in scan.c source file.
*/
int Multi_Git_Project_scan(char* str);
int Git_Project_scan(char* str);
int Multi_Git_Project_rm(char* str);
int Git_Project_rm(char* str);
int
command_exec(int argc, char** argv);
int
command_parse_and_exec(char* str);
#endif

18
include/printclr.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef __PRINTCLR_H
#define __PRINTCLR_H
typedef enum {
FG_BLACK = 0,
FG_RED,
FG_GREEN,
FG_YELLOW,
FG_BLUE,
FG_MAGENTA,
FG_CYAN,
FG_WHITE
}fg_clr_t;
void
printclr(fg_clr_t fg, const char* fmt, ...);
#endif

10
include/scan.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __SCAN_H
#define __SCAN_H
#include <command.h>
#include <stdlib.h>
int cache_location(const char* directory_path, const char* git_project_path);
#endif