diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/build b/build index 5d6a211..48979c0 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 5d6a211ce65358e4f215d52efe48db42680800c0 +Subproject commit 48979c02f0d737b67ec3eac533a0964217207a14 diff --git a/src/Command/Actions/Add.cpp b/src/Command/Actions/Add.cpp index 189bc5d..9f1ccd9 100644 --- a/src/Command/Actions/Add.cpp +++ b/src/Command/Actions/Add.cpp @@ -63,15 +63,12 @@ namespace Frate::Command::Add { }, Handler{ .aliases = {"lib","l"}, - .positional_args = {"library-name"}, + .positional_args = {"lib"}, .docs = "Add a library to link to your project", .callback = [inter]() { - //TODO implement library Library::options(inter); - // Libraries::add(inter); return Library::add(inter); }, - .implemented = false, .requires_project = true, }, Handler{ diff --git a/src/Command/Actions/List.cpp b/src/Command/Actions/List.cpp index 0bc9bde..5a6d28c 100644 --- a/src/Command/Actions/List.cpp +++ b/src/Command/Actions/List.cpp @@ -59,7 +59,7 @@ namespace Frate::Command::List{ }, Handler{ .aliases = - {"libraries","l"}, + {"libraries", "lib", "l"}, .docs = "List flags", .callback = [inter]() { return Library::list(inter); diff --git a/src/Command/Actions/Remove.cpp b/src/Command/Actions/Remove.cpp index e432793..986353d 100644 --- a/src/Command/Actions/Remove.cpp +++ b/src/Command/Actions/Remove.cpp @@ -56,8 +56,8 @@ namespace Frate::Command::Remove { }, }, { - .aliases = {"libraries", "l"}, - .positional_args = {"mode"}, + .aliases = {"libraries", "l", "lib"}, + .positional_args = {"lib"}, .docs = "Remove a mode from the project", .callback = [inter]() { Library::options(inter); diff --git a/src/Command/Helpers/Project.cpp b/src/Command/Helpers/Project.cpp index 06bbd8c..15db0da 100644 --- a/src/Command/Helpers/Project.cpp +++ b/src/Command/Helpers/Project.cpp @@ -49,6 +49,7 @@ namespace Frate::Command { project_description = j["project_description"]; default_mode = j["default_mode"]; keywords = j["keywords"]; + libs = j["libs"]; for (auto &dep : j["dependencies"]) { Package d; d.name = dep["name"].is_null() ? "" : dep["name"].is_null() ? "" : dep["name"]; @@ -165,6 +166,7 @@ namespace Frate::Command { new_json["project_description"] = project_description; new_json["toolchains"] = toolchains; new_json["prompts"] = json::object(); + new_json["libs"] = libs; for(auto [key, value] : prompts){ json prompt; prompt["value"] = value.value; diff --git a/src/main.cpp b/src/main.cpp index 03755b4..8ead444 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,6 +12,7 @@ namespace Frate { Utils::Info info = Utils::Info(); Utils::Warning warning = Utils::Warning(); } + int main(int argc, char **argv) { // LUCAS MAKE SURE YOU INITIALIZE YOUR F@*KING STRUCT YOU TW@T //std::shared_ptr ctx = std::make_shared();