aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.cli/registry.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
commit2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch)
tree54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.cli/registry.ccm
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.cli/registry.ccm')
-rw-r--r--nihil.cli/registry.ccm22
1 files changed, 6 insertions, 16 deletions
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 <memory>
-#include <span>
-
+// 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<std::shared_ptr<command_node>>;
} // namespace nihil