CBuild
C++ build system with scripts written in c++
|
Defines and registering for handlers for cli parser. More...
Go to the source code of this file.
Namespaces | |
namespace | CBuild |
Filebuffer for CBuild ecosystem. | |
Typedefs | |
typedef enum CBuild::ARG_TYPE | CBuild::ARG_TYPE |
using | CBuild::handler = ARG_TYPE (*)(lib::map<std::string, std::string>*, char**, int, int, CBuild::RType*) |
Handler for specific argument. | |
Enumerations | |
enum | CBuild::ARG_TYPE { CBuild::BLANK_ARG = 0 , CBuild::SIMPLE_ARG = 1 , CBuild::TASK_ARG = 2 , CBuild::TOOLCHAIN_ARG = 2 , CBuild::GENERICK_ARG = 2 , CBuild::GENERATOR_ARG = 2 , CBuild::INC_ONE = 1 , CBuild::INC_TWO = 2 , CBuild::INC_THREE = 3 , CBuild::INC_FOUR = 4 , CBuild::INC_FIVE = 5 , CBuild::INC_SIX = 6 , CBuild::INC_SEVEN = 7 , CBuild::INC_EIGHT = 8 , CBuild::INC_NINE = 9 , CBuild::INC_TEN = 10 } |
Type of argument, indicate how many tokens this argument consumes, including self. More... | |
Functions | |
void | CBuild::exit (int code) |
bool | CBuild::register_parse_handler (std::string cmd, CBuild::handler parser) |
Register new handler for parsing cli args, see handler typedef comment to guide how to write handlers. | |
Defines and registering for handlers for cli parser.
Copyright (C) 2023 WolodiaM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Definition in file cli_parse_handler.hpp.