How linruiliu/toolx-cpp works
ToolX is a C++20 toolkit with reusable libraries and six independently invokable operator CLIs. The principal release workflow is to inspect or author configuration, compose and publish it with sync, stage and archive a release with pack, then use HTTP, log, and inspect tools for operational checks and diagnosis. The README describes that CLI sequence as an operator journey, not runtime dependencies, so the graph does not connect the tools to each other. Library and CLI relationships are shown where documented or visible in sampled CMake; unsampled tool implementations are represented by their documented responsibilities.
Main entry points: toolx_sync.cpp Sync CLI · toolx_inspect.cpp Inspect CLI · toolx_config.cpp Config CLI · toolx_pack.cpp Pack CLI
Components 25
Configuration
- Config CLI
tools/toolx_config.cpp - Sync CLI
tools/toolx_sync.cpp - Config engine
src/cfgx.cpp - Schema validation
src/schemax.cpp
Runtime libraries
- CLI parsing
src/argtool.cpp - Concurrency
src/asyncx.cpp - Filesystem transactions
src/fsx.cpp - HTTP client
src/httpx.cpp - Logging
src/logsys.cpp
Support libraries
- Common utilities
src/utils.cpp - Platform utilities
src/sysx.cpp - Result adapters
- Hash functions
src/hashx.cpp - Text codecs
src/textcodec.cpp
Inspection
- Log CLI
tools/toolx_log.cpp - Inspect CLI
tools/toolx_inspect.cpp - Terminal UI
src/tuix.cpp
Other components
- Operator
- Config and schema files
- Log files
- Source tree
- Staged archive
- HTTP endpoints
Connections 25
- Operator → Config CLI: invokes
- Operator → Sync CLI: invokes
- Operator → Pack CLI: invokes
- Operator → HTTP CLI: invokes
- Operator → Log CLI: invokes
- Operator → Inspect CLI: invokes
- Config CLI → Config and schema files: reads or edits
- Config CLI → Config engine: loads and validates
- Config CLI → Schema validation: validates schema
- Sync CLI → Config and schema files: reads layers; writes result
- Sync CLI → Config engine: composes configuration
- Sync CLI → Schema validation: validates schema
- Sync CLI → HTTP client: fetches remote layer
- Pack CLI → Source tree: selects source files
- Pack CLI → Staged archive: stages and archives
- Pack CLI → Filesystem transactions: uses transactions
- HTTP CLI → HTTP endpoints: checks endpoints
- HTTP CLI → HTTP client: sends requests
- Log CLI → Log files: reads and summarizes
- Inspect CLI → Config and schema files: reads config and schema
- Inspect CLI → Config engine: loads config
- Inspect CLI → Schema validation: checks schema
- Inspect CLI → Terminal UI: renders inspection UI
- HTTP client → Common utilities: uses utilities
- CLI parsing → Operator: parses arguments