summaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
authorAmlal <amlal@zka.com>2024-09-08 21:27:22 +0200
committerAmlal <amlal@zka.com>2024-09-08 21:27:22 +0200
commit602a5b177636ed55e950b239eedfc0d3217b97e1 (patch)
tree310385b731b349a918de2b24a13f15cdf07e59fe /cli
parentb24daff9b2931a8152e6056a88b40823d6adcd78 (diff)
[src/ManifestBuilder.cxx] Almost detect ELF executables.
[cli/BuilderJSON.cxx] Improve code readiblity. Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/BuilderJSON.cxx (renamed from cli/tool.cxx)15
1 files changed, 8 insertions, 7 deletions
diff --git a/cli/tool.cxx b/cli/BuilderJSON.cxx
index b48ac62..cffbe45 100644
--- a/cli/tool.cxx
+++ b/cli/BuilderJSON.cxx
@@ -5,8 +5,8 @@
#include <iostream>
#include <thread>
-int cJobIndex = 0;
-bool cFailed = false;
+int cJobIndex = 0;
+bool cFailed = false;
int main(int argc, char** argv)
{
@@ -18,14 +18,16 @@ int main(int argc, char** argv)
if (index_json == "/Ver" ||
index_json == "/Version" ||
- index_json == "/?" ||
+ index_json == "/?" ||
index_json == "/Help")
{
- std::cout << "btb: 🚀 Basic Tool for Building.\n";
+ std::cout << "btb: 🚀 Basic Tool for Building (JSON support).\n";
std::cout << "btb: Brought to you by Amlal El Mahrouss.\n";
std::cout << "btb: © ZKA Technologies, all rights reserved.\n";
- std::cout << "btb: 🆘 run file: btb <json_path>.json\n";
+ if (index_json == "/?" ||
+ index_json == "/Help")
+ std::cout << "btb: 🆘 run file: btb <json_path>.json\n";
return 0;
}
@@ -54,8 +56,7 @@ int main(int argc, char** argv)
// wait for completion of all jobs.
while (cJobIndex)
- {
- }
+ ;
return cFailed ? 1 : 0;
}