From 2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Tue, 1 Jul 2025 17:07:04 +0100 Subject: add nihil.std --- nihil.cli/registry.ccm | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'nihil.cli/registry.ccm') diff --git a/nihil.cli/registry.ccm b/nihil.cli/registry.ccm index 0b9754d..673f516 100644 --- a/nihil.cli/registry.ccm +++ b/nihil.cli/registry.ccm @@ -1,28 +1,18 @@ -/* - * This source code is released into the public domain. - */ - -module; - -#include -#include - +// This source code is released into the public domain. export module nihil.cli:registry; +import nihil.std; + 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. - */ +// 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. - */ +// Get previously registered commands. auto get_registered_commands() -> std::span>; } // namespace nihil -- cgit v1.2.3