aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.cli/command_node.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.cli/command_node.ccm')
-rw-r--r--nihil.cli/command_node.ccm26
1 files changed, 0 insertions, 26 deletions
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<int, error>;
-
-private:
- std::string m_path;
-};
-
-} // namespace nihil