From 378dd663a402fe196f2b56c6413eb3f623aecbbf Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Tue, 1 Jul 2025 19:18:42 +0100 Subject: cli: refactoring --- nihil.cli/command_node.ccm | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 nihil.cli/command_node.ccm (limited to 'nihil.cli/command_node.ccm') diff --git a/nihil.cli/command_node.ccm b/nihil.cli/command_node.ccm deleted file mode 100644 index 25b5006..0000000 --- a/nihil.cli/command_node.ccm +++ /dev/null @@ -1,26 +0,0 @@ -// This source code is released into the public domain. -export module nihil.cli:command_node; - -// command_node represents a possibly-invocable command. - -import nihil.std; -import nihil.error; - -namespace nihil { - -export struct command_node { - command_node(std::string_view path) noexcept; - - virtual ~command_node(); - - [[nodiscard]] auto path(this command_node const &) noexcept - -> std::string_view; - - [[nodiscard]] virtual auto invoke(int argc, char **argv) const - -> std::expected; - -private: - std::string m_path; -}; - -} // namespace nihil -- cgit v1.2.3