diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | public/tools/Common.h (renamed from private/tools/Common.h) | 2 | ||||
| -rw-r--r-- | public/tools/Framework.h (renamed from private/tools/Framework.h) | 0 | ||||
| -rw-r--r-- | public/tools/Steps.h | 14 | ||||
| -rw-r--r-- | public/tools/make_application.sh (renamed from private/tools/make_application.sh) | 0 | ||||
| -rw-r--r-- | public/tools/make_container.json (renamed from private/tools/make_framework.json) | 4 | ||||
| -rw-r--r-- | public/tools/src/CLI.cc (renamed from private/tools/src/Framework.cc) | 29 |
7 files changed, 43 insertions, 10 deletions
@@ -10,11 +10,15 @@ xcuserdata/ */xcuserdata/* *.xcworkspacedata +public/tools/make_container + minoskrnl/minoskrnl.xcodeproj/project.xcworkspace/xcshareddata/ html/ latex/ +public/tools/src.fwrk + .cmake/ .qtc_clangd/ CMakeCache.txt diff --git a/private/tools/Common.h b/public/tools/Common.h index ae483545..2633df38 100644 --- a/private/tools/Common.h +++ b/public/tools/Common.h @@ -13,5 +13,7 @@ #include <cstring> #include <sstream> #include <filesystem> +#include <cstdlib> +#include <vector> #endif // APPS_COMMON_H diff --git a/private/tools/Framework.h b/public/tools/Framework.h index d5d7ac27..d5d7ac27 100644 --- a/private/tools/Framework.h +++ b/public/tools/Framework.h diff --git a/public/tools/Steps.h b/public/tools/Steps.h new file mode 100644 index 00000000..be16b61a --- /dev/null +++ b/public/tools/Steps.h @@ -0,0 +1,14 @@ +/** + Thu Oct 17 07:57:43 CEST 2024 + (c) Theater Quality Inc. +*/ + +#ifndef APPS_STEPS_H +#define APPS_STEPS_H + +#include <Common.h> +#include <Framework.h> + +#define kStepsExtension ".steps" + +#endif // ifndef APPS_STEPS_H
\ No newline at end of file diff --git a/private/tools/make_application.sh b/public/tools/make_application.sh index 2878f5b6..2878f5b6 100644 --- a/private/tools/make_application.sh +++ b/public/tools/make_application.sh diff --git a/private/tools/make_framework.json b/public/tools/make_container.json index 6071ebaa..1f66e5af 100644 --- a/private/tools/make_framework.json +++ b/public/tools/make_container.json @@ -2,8 +2,8 @@ "compiler_path": "g++", "compiler_std": "c++20", "headers_path": ["./"], - "sources_path": ["src/Framework.cc"], - "output_name": "make_framework.o", + "sources_path": ["src/CLI.cc"], + "output_name": "make_container", "cpp_macros": [ "kMKFVersion=0x0100", "kMKFVersionHighest=0x0100", diff --git a/private/tools/src/Framework.cc b/public/tools/src/CLI.cc index 7fcf5a7a..b7f2b853 100644 --- a/private/tools/src/Framework.cc +++ b/public/tools/src/CLI.cc @@ -4,10 +4,8 @@ * Copyright (c) 2024 Theater Quality Inc */ -#include <cstdlib> -#include <filesystem> #include <Framework.h> -#include <vector> +#include <Steps.h> /// @brief This program makes a framework directory for ZKA OS. @@ -21,27 +19,42 @@ int main(int argc, char* argv[]) { if (strcmp(argv[i], "-h") == 0) { - std::cout << "make_framework: Framework/Application Creation Tool.\n"; - std::cout << "make_framework: © Theater Quality Inc, All rights reserved.\n"; + std::cout << "make_container: Framework/Application Creation Tool.\n"; + std::cout << "make_container: © Theater Quality Inc, All rights reserved.\n"; + + std::cout << "make_container: -app: Application directory.\n"; + std::cout << "make_container: -steps: Steps directory.\n"; + std::cout << "make_container: -fwrk: Framework directory.\n"; return EXIT_SUCCESS; } - if (strcmp(argv[i], "-a") == 0) + if (strcmp(argv[i], "-app") == 0) { ext = kAppExtension; continue; } + else if (strcmp(argv[i], "-steps") == 0) + { + ext = kStepsExtension; + continue; + } + else if (strcmp(argv[i], "-fwrk") == 0) + { + ext = kFKExtension; + continue; + } + files.push_back(argv[i]); } auto path = std::string(argv[1]); - if (!path.ends_with(ext)) + if (!std::filesystem::exists(path)) return EXIT_FAILURE; - std::filesystem::path path_arg = path; + std::filesystem::path path_arg = path + ext; if (std::filesystem::create_directory(path_arg)) { |
