aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.cli/command_node.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 19:18:42 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 19:18:42 +0100
commit378dd663a402fe196f2b56c6413eb3f623aecbbf (patch)
tree6d13f14ff8f9bff7c55a30eb046af489d0f677a2 /nihil.cli/command_node.ccm
parent2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (diff)
downloadnihil-378dd663a402fe196f2b56c6413eb3f623aecbbf.tar.gz
nihil-378dd663a402fe196f2b56c6413eb3f623aecbbf.tar.bz2
cli: refactoring
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