CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
Namespaces | Typedefs | Enumerations | Functions
cli_parse_handler.hpp File Reference

Defines and registering for handlers for cli parser. More...

#include "string"
#include "CBuild.hpp"
#include "map.hpp"

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.
 

Detailed Description

Defines and registering for handlers for cli parser.

Author
WolodiaM (w_mel.nosp@m.nyk@.nosp@m.outlo.nosp@m.ok.c.nosp@m.om)
Date
2023-10-30

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.