Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from AntelopeIO/mikelik/minor_improvements
Browse files Browse the repository at this point in the history
Fix description of `antler-proj remove`
  • Loading branch information
ScottBailey authored Apr 27, 2023
2 parents d1a884f + 9e477a6 commit ac0e470
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tools/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <string>
#include <string_view>
#include <memory>
#include <vector>
#include <optional>
#include <tuple>

Expand All @@ -26,7 +25,7 @@ static V depends(V&& v) { return std::forward<V>(v); }

template <typename... Ts>
struct runner {
runner(CLI::App& app)
explicit runner(CLI::App& app)
: tup(depends<Ts>(app)...) {}

template <std::size_t I=0>
Expand Down Expand Up @@ -61,7 +60,6 @@ int main(int argc, char** argv) {
},
"get the version of antler-proj");


runner<antler::add_to_project,
antler::build_project,
antler::init_project,
Expand Down
4 changes: 2 additions & 2 deletions tools/remove_from.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace antler {

remove_from_project(CLI::App& app) {
path = system::fs::current_path().string();
subcommand = app.add_subcommand("remove", "Add an app, dependency, library or test to your project.");
subcommand = app.add_subcommand("remove", "Remove an app, dependency, library or test from your project.");
subcommand->add_option("-p, path", path, "Path containing the project's yaml file.");

app_subcommand = subcommand->add_subcommand("app", "Remove app from the project.");
Expand All @@ -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:)")
Expand Down
3 changes: 2 additions & 1 deletion tools/update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 to 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.");
Expand Down

0 comments on commit ac0e470

Please sign in to comment.