Initial commit
This commit is contained in:
35
src/Output.cpp
Normal file
35
src/Output.cpp
Normal 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
5
src/Output.hpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
namespace Output {
|
||||
void printMenu();
|
||||
}
|
||||
12
src/main.cpp
Normal file
12
src/main.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user