How greenchannel/website_manager works
website_manager is a CMD-oriented key–value list manager. The main workflow is: a user invokes a subcommand, the program selects or identifies a list, performs an operation on its files, and prints results or logs status. The README also documents list merging and directory listing, which are included as capabilities even though their implementations were not shown in the excerpt. The application is concentrated in webm.cpp; spdlog and CLI11 are vendored dependencies. Relationships for unsampled commands are documented rather than inferred from names.
Main entry points: webm.cpp List operations · spdlog.h spdlog API · registry.h Logger registry · helpers-inl.h Log-level config
Components 15
List management
- Initialize environment
webm.cpp - Current list selection
webm.cpp - List operations
webm.cpp - Key-value records
webm.cpp - List files
webm.cpp - Active-list config
webm.cpp
Command interface
- CLI dispatch
webm.cpp - Argument parsing
CLI11.hpp
Logging
- spdlog API
spdlog/spdlog.h
Logging internals
- Log formatting
spdlog/pattern_formatter-inl.h - Log sinks
spdlog/sinks/base_sink.h - Logger registry
spdlog/details/registry.h - Formatting library
spdlog/fmt/bundled/format.h - Log-level config
spdlog/cfg/helpers-inl.h
Other components
- CMD user
Connections 15
- CMD user → CLI dispatch: invokes
- CLI dispatch → Argument parsing: parses arguments
webm.cpp - CLI dispatch → Initialize environment: runs init
webm.cpp - CLI dispatch → Current list selection: runs set/show
webm.cpp - CLI dispatch → List operations: dispatches commands
webm.cpp - List operations → Key-value records: appends and reads
webm.cpp - List operations → List files: creates and deletes
webm.cpp - List operations → Active-list config: updates selection
webm.cpp - Current list selection → Active-list config: reads active list
webm.cpp - List operations → spdlog API: logs status
webm.cpp - spdlog API → Log formatting: formats messages
- spdlog API → Log sinks: emits messages
- spdlog API → Logger registry: uses registry
spdlog/spdlog.h - spdlog API → Formatting library: formats arguments
- Log-level config → Logger registry: sets levels
spdlog/cfg/helpers-inl.h