diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-09 21:36:40 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-09 21:36:40 +0100 |
| commit | 0f8285983883048dbf19734c588473725c66f367 (patch) | |
| tree | d9ccd3b55cc31b1a9e1178320bf602936742a6ff /public | |
| parent | 0ea1827a392411eafae2ee9ebbfddbae92958f73 (diff) | |
Add NS.h file for CoreBoot, and open command.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'public')
| -rw-r--r-- | public/tools/make_app/src/CLI.cc | 10 | ||||
| -rw-r--r-- | public/tools/open/dist/.keep | 0 | ||||
| -rw-r--r-- | public/tools/open/open.json | 12 | ||||
| -rw-r--r-- | public/tools/open/src/CLI.cc | 44 |
4 files changed, 61 insertions, 5 deletions
diff --git a/public/tools/make_app/src/CLI.cc b/public/tools/make_app/src/CLI.cc index ed686294..cdf3a6b9 100644 --- a/public/tools/make_app/src/CLI.cc +++ b/public/tools/make_app/src/CLI.cc @@ -19,12 +19,12 @@ int main(int argc, char* argv[]) { if (strcmp(argv[i], "-h") == 0) { - std::cout << "make_container: Framework/Application Creation Tool.\n"; - std::cout << "make_container: © Theater Quality Corp, All rights reserved.\n"; + std::cout << "make_app: Framework/Application Creation Tool.\n"; + std::cout << "make_app: © Theater Quality Corp, 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"; + std::cout << "make_app: -app: Application directory.\n"; + std::cout << "make_app: -steps: Steps directory.\n"; + std::cout << "make_app: -fwrk: Framework directory.\n"; return EXIT_SUCCESS; } diff --git a/public/tools/open/dist/.keep b/public/tools/open/dist/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/open/dist/.keep diff --git a/public/tools/open/open.json b/public/tools/open/open.json new file mode 100644 index 00000000..71ef4bf0 --- /dev/null +++ b/public/tools/open/open.json @@ -0,0 +1,12 @@ +{ + "compiler_path": "g++", + "compiler_std": "c++20", + "headers_path": ["./"], + "sources_path": ["src/CLI.cc"], + "output_name": "./dist/open", + "cpp_macros": [ + "kOpenVersion=0x0100", + "kOpenVersionHighest=0x0100", + "kOpenVersionLowest=0x0100" + ] +} diff --git a/public/tools/open/src/CLI.cc b/public/tools/open/src/CLI.cc new file mode 100644 index 00000000..3fea9463 --- /dev/null +++ b/public/tools/open/src/CLI.cc @@ -0,0 +1,44 @@ +/* + * Created on Thu Oct 17 08:00:42 CEST 2024 + * + * Copyright (c) 2024 Theater Quality Corp + */ + +#include <iostream> +#include <vector> + +/// @brief This program makes a framework directory for ZKA OS. + +int main(int argc, char* argv[]) +{ + if (argc == 1) + return EXIT_FAILURE; + + for (size_t i = 1UL; i < argc; ++i) + { + if (strcmp(argv[i], "-h") == 0) + { + std::cout << "open: Open Application Tool.\n"; + std::cout << "open: © Theater Quality Corp, All rights reserved.\n"; + + std::cout << "open: -a: Application is taken as input.\n"; + std::cout << "open: -u: URL is taken as input.\n"; + + return EXIT_SUCCESS; + } + else if (strcmp(argv[i], "-a") == 0) + { + const auto kBasePath = "/apps/packages/"; + + return EXIT_SUCCESS; + } + else if (strcmp(argv[i], "-u") == 0) + { + const auto kBasePath = "/support/defaults/browser"; + + return EXIT_SUCCESS; + } + } + + return EXIT_FAILURE; +} |
