practically the whole thing up and running. I should make commits more often...
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef ARGS_H
|
||||
#define ARGS_H
|
||||
|
||||
typedef enum {
|
||||
NEW, // create a project
|
||||
BUILD, // build a project
|
||||
RUN // build and run a project or run a project (is_built is denoted in .vendettaconfig => if true, just run, otherwise build and run)
|
||||
} meg_e; // mutually_exclusive_group_e;
|
||||
|
||||
typedef struct {
|
||||
meg_e main_arg;
|
||||
char* project_name;
|
||||
} args_t;
|
||||
|
||||
|
||||
args_t parse_args(int argc, char** argv);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef BUILD_H
|
||||
#define BUILD_H
|
||||
|
||||
void build_project();
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef NEW_H
|
||||
#define NEW_H
|
||||
|
||||
void new_project(char* name);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef RUN_H
|
||||
#define RUN_H
|
||||
|
||||
void run_project();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user