/* * This source code is released into the public domain. */ module; #include #include export module nihil.cli:registry; namespace nihil { export struct command; export struct command_node; /* * Register a command. This is guaranteed not to throw; errors will print * a diagnostic and exit. */ auto register_command(command *cmd) noexcept -> void; /* * Get previously registered commands. */ auto get_registered_commands() -> std::span>; } // namespace nihil