Initial commit

This commit is contained in:
2026-05-07 15:01:36 +02:00
parent 4cbf2fdfaa
commit af1519b736
8 changed files with 410 additions and 0 deletions

35
src/Output.cpp Normal file
View File

@@ -0,0 +1,35 @@
#include "Output.hpp"
#include "fmt/base.h"
#include "fmt/color.h"
namespace Output {
void printMenu() {
fmt::print("Usage: lmake [arguments]\n");
fmt::print("arguments:\n");
fmt::print(fmt::fg(fmt::color::light_coral),
" init [executable|library|shared|static|interface] Starts a new project in the same directory.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" gen Generates CMakeLists.txt file.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" build <extra cmake args> Run cmake and build.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" run <optional args> Run cmake and build.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" install Run cmake --install. Needs admin privileges.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" clean Clean the build directory.\n"
);
fmt::print(fmt::fg(fmt::color::light_coral),
" help Show help.\n"
);
fmt::print(fmt::fg(fmt::color::light_green),
" version Current cmkr version.\n"
);
}
}

5
src/Output.hpp Normal file
View File

@@ -0,0 +1,5 @@
#pragma once
namespace Output {
void printMenu();
}

12
src/main.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "Output.hpp"
// #include <iostream>
// #include <cstdlib>
int main(int argc, char* argv[]) {
// fmt::print("Amount of args: {}\n", argc);
// for (int i = 0; i < argc; i++) {
// fmt::print("argv{}: {}\n", i, argv[i]);
// }
Output::printMenu();
}