Feature: Add capability to build multiple files.

This commit is contained in:
0x221E
2026-01-18 16:43:23 +01:00
parent 5fd1f72624
commit abe970c173
7 changed files with 97 additions and 26 deletions

View File

@@ -2,11 +2,22 @@
#define COMMAND_H
#include "string.h"
#include "common.h"
typedef struct Arena Arena;
typedef struct Discovery Discovery;
typedef struct Configuration Configuration;
struct CommandOptions
{
Arena* a;
StringPool* sp;
BuildProfile bp;
Configuration* c;
StringView app;
StringView* files;
};
struct Command
{
Arena* a;
@@ -16,8 +27,9 @@ struct Command
typedef struct Argument Argument;
typedef struct Command Command;
typedef struct CommandOptions CommandOptions;
Command command_create(Arena* a, Discovery* d, Configuration* c);
Command command_create_f_to_o(CommandOptions* co);
int command_run(Command* cmd);