How musialny/cli-executor works
Project type and purpose
• This is a C++ CLI-Executor library plus a reference CLI application (“cli-example”) and a suite of tests.
• The library (“cli-preprocessor”) implements a small pipeline for preprocessing and executing CLI commands in modular pieces.
File structure
• Top-level:
• CMakeLists.txt + CMakePresets.json – build orchestration
• vcpkg.json / vcpkg-configuration.json – dependency management
• LanguageSubset.md – spec for supported CLI language subset
• Subproject “cli-preprocessor”:
• src/CliPreprocessor.cppm
• src/CliActionsContainer.cppm
• src/CliCommandExecutor.cppm
• src/CliCommandParameters.cppm
• tests/ – unit tests for the executor
• Subproject “cli-example”:
• src/main.cpp – demo entry point
• src/commands/Version.cppm, Commands.cppm – example commands
README for additional insights
• Core dependencies: CMake, vcpkg, clang/clang++, ninja
• It is designed to be built via CMake + vcpkg using clang toolchain and ninja
• No external services beyond local toolchain