From a8d96a3eac1965056d88dc90f1da8055f237a8fa Mon Sep 17 00:00:00 2001 From: Michal Lesiak Date: Wed, 26 Apr 2023 15:55:37 +0200 Subject: [PATCH 1/2] Fix description of `antler-proj remove` --- tools/main.cpp | 4 +--- tools/remove_from.hpp | 4 ++-- tools/update.hpp | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/main.cpp b/tools/main.cpp index df58e96..b0c5ed4 100644 --- a/tools/main.cpp +++ b/tools/main.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include @@ -26,7 +25,7 @@ static V depends(V&& v) { return std::forward(v); } template struct runner { - runner(CLI::App& app) + explicit runner(CLI::App& app) : tup(depends(app)...) {} template @@ -61,7 +60,6 @@ int main(int argc, char** argv) { }, "get the version of antler-proj"); - runneradd_option("-p, path", path, "Path containing the project's yaml file."); app_subcommand = subcommand->add_subcommand("app", "Remove app from the project."); @@ -79,7 +79,7 @@ namespace antler { lib_subcommand->footer(std::string(R"(Examples:)") + "\n\t" + app.get_name() +R"( remove lib MyLib)"); lib_subcommand->add_option("-p, path", path, "Path containing the project's yaml file."); - lib_subcommand->add_option("-n, name", obj_name, "The name of the library to add.")->required(); + lib_subcommand->add_option("-n, name", obj_name, "The name of the library to remove.")->required(); dep_subcommand = subcommand->add_subcommand("dep", "Remove a dependency from the project."); dep_subcommand->footer(std::string(R"(Examples:)") diff --git a/tools/update.hpp b/tools/update.hpp index d3e6bd7..5dc208a 100644 --- a/tools/update.hpp +++ b/tools/update.hpp @@ -109,7 +109,7 @@ namespace antler { update_project(CLI::App& app) { path = system::fs::current_path().string(); - subcommand = app.add_subcommand("update", "Update an app, dependency, library or test to your project."); + subcommand = app.add_subcommand("update", "Update an app, dependency, library or test of your project."); subcommand->add_option("-p, path", path, "Path containing the project's yaml file."); app_subcommand = subcommand->add_subcommand("app", "Update an app in the project."); From 9e477a6aefaa21339f93066998a5df8497ef597b Mon Sep 17 00:00:00 2001 From: mikelik Date: Thu, 27 Apr 2023 15:46:46 +0200 Subject: [PATCH 2/2] Update tools/update.hpp Code review grammar fix Co-authored-by: Scott B --- tools/update.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/update.hpp b/tools/update.hpp index 5dc208a..b4665e5 100644 --- a/tools/update.hpp +++ b/tools/update.hpp @@ -109,7 +109,8 @@ namespace antler { update_project(CLI::App& app) { path = system::fs::current_path().string(); - subcommand = app.add_subcommand("update", "Update an app, dependency, library or test of your project."); + subcommand = app.add_subcommand("update", "Update an app, dependency, library or test in your project."); + subcommand->add_option("-p, path", path, "Path containing the project's yaml file."); app_subcommand = subcommand->add_subcommand("app", "Update an app in the project.");