CLI v1.0.0
Custom cli console for creating commands executable at runtime
Loading...
Searching...
No Matches
CLI

An easy to use c++ library allowing for easy creation of custom commands executable at runtime.

Build Documentation License Top Language

Features

  • Creating custom commands
  • Running custom commands with user input at runtime
  • Running custom command scripts from files

Requirements

  • C++23 compiler
  • CMake 3.14+
  • Git

Instalation

Clone from github:

git clone https://github.com/Boxur/CLI external/cli

CMake

Add to your project in CMake

add_subdirectory(external/cli)
target_link_libraries(project PRIVATE cli)

Examples

Minimal running example:

#include <cli/console.hpp>
int main(){
cli::Console console;
console.Run();
}
Console represents the customisable console.
Definition cli.hpp:21
void Run()
Starts the custom console.
Definition cli.cpp:269

Full use example can be found in src/commands.cpp

Contributing

Contributions, bug reports, and suggestions are welcome.

Before submitting a pull request, please ensure that the project builds successfully

License

This project is licensed under the MIT License. See LICENSE for details.