diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e7c8e0..6aa4977 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.7) project(ceev) +set(CMAKE_CXX_STANDARD 17) find_package(SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIRS}) add_executable(ceev src/ceev.cc src/ceev.h) diff --git a/src/ceev.cc b/src/ceev.cc index 4443fc2..b5dc12f 100644 --- a/src/ceev.cc +++ b/src/ceev.cc @@ -8,11 +8,19 @@ int usage() { std::cout << "Run '" << program_invocation_short_name << " --help' for more information.\n" << std::endl; return 1; } +int show_help() { + return 0; +} + +int create_fs() { + std::string cwd = fs::current_path(); +} int main(int argc, char **argv) { if (argc <= 1) { return usage(); } - std::cout << "Hello World" << std::endl; + if (std::strcmp(argv[1], "init")) return create_fs(); + if (std::strcmp(argv[1], "--help")) return show_help(); return 0; } \ No newline at end of file diff --git a/src/ceev.h b/src/ceev.h index 111f375..e2b8ea6 100644 --- a/src/ceev.h +++ b/src/ceev.h @@ -1,8 +1,12 @@ #pragma once -#include #include +#include +#include + +namespace fs = std::filesystem; int usage(); int show_help(); +int create_fs(); int main(int argc, char **argv); \ No newline at end of file