blob: e5a7e29e3bc72770e68da0f477e58802b86ac6ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// This source code is released into the public domain.
export module nihil.cli:registry;
import nihil.std;
namespace nihil {
export struct command;
// 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<std::shared_ptr<command>>;
} // namespace nihil
|