|
44 | 44 | #include <vix/cli/commands/MakeCommand.hpp> |
45 | 45 | #include <vix/cli/commands/CompletionCommand.hpp> |
46 | 46 | #include <vix/cli/commands/InfoCommand.hpp> |
| 47 | +#include <vix/cli/commands/FmtCommand.hpp> |
| 48 | +#include <vix/cli/commands/CleanCommand.hpp> |
| 49 | +#include <vix/cli/commands/ResetCommand.hpp> |
| 50 | +#include <vix/cli/commands/TaskCommand.hpp> |
47 | 51 | #include <vix/utils/Env.hpp> |
48 | 52 | #include <vix/cli/Style.hpp> |
49 | 53 | #include <vix/utils/Logger.hpp> |
@@ -217,6 +221,14 @@ namespace vix |
217 | 221 | { return commands::CacheCommand::run(args); }; |
218 | 222 | commands_["info"] = [](auto args) |
219 | 223 | { return commands::InfoCommand::run(args); }; |
| 224 | + commands_["fmt"] = [](auto args) |
| 225 | + { return commands::FmtCommand::run(args); }; |
| 226 | + commands_["clean"] = [](auto args) |
| 227 | + { return commands::CleanCommand::run(args); }; |
| 228 | + commands_["reset"] = [](auto args) |
| 229 | + { return commands::ResetCommand::run(args); }; |
| 230 | + commands_["task"] = [](auto args) |
| 231 | + { return commands::TaskCommand::run(args); }; |
220 | 232 |
|
221 | 233 | commands_["-h"] = [this](auto args) |
222 | 234 | { return help(args); }; |
@@ -456,6 +468,14 @@ namespace vix |
456 | 468 | return commands::PublishCommand::help(); |
457 | 469 | if (cmd == "completion") |
458 | 470 | return commands::CompletionCommand::help(); |
| 471 | + if (cmd == "fmt") |
| 472 | + return commands::FmtCommand::help(); |
| 473 | + if (cmd == "clean") |
| 474 | + return commands::CleanCommand::help(); |
| 475 | + if (cmd == "reset") |
| 476 | + return commands::ResetCommand::help(); |
| 477 | + if (cmd == "task") |
| 478 | + return commands::TaskCommand::help(); |
459 | 479 | if (cmd == "deps") |
460 | 480 | { |
461 | 481 | vix::cli::util::warn_line(std::cout, "'vix deps' is deprecated, use 'vix install'"); |
@@ -526,6 +546,10 @@ namespace vix |
526 | 546 | out << indent(3) << "build Build project\n"; |
527 | 547 | out << indent(3) << "check Validate build or file\n"; |
528 | 548 | out << indent(3) << "tests Run tests\n"; |
| 549 | + out << indent(3) << "fmt Format source code\n"; |
| 550 | + out << indent(3) << "clean Remove project cache\n"; |
| 551 | + out << indent(3) << "reset Clean and reinstall project\n"; |
| 552 | + out << indent(3) << "task Run reusable project tasks\n"; |
529 | 553 | out << indent(3) << "repl Interactive REPL\n\n"; |
530 | 554 |
|
531 | 555 | // Dependencies |
|
0 commit comments