19 static _consteval
auto name() {
return "/help"; }
20 static _consteval
auto usage() {
return ""; }
21 static _consteval
auto description() {
return "Describe the available commands and their usage"; }
23 void _print(
auto& log,
auto&& command)
25 if constexpr (
requires {command.usage();})
26 log.println(command.name(),
" ", command.usage());
28 log.println(command.name());
29 log.println(
" ", command.description());
32 int main(
auto& log,
auto& commands)
34 boost::pfr::for_each_field(commands, [&](
auto&& command)
39 log.println(
" ", description());