diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-01 19:18:42 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-01 19:18:42 +0100 |
| commit | 378dd663a402fe196f2b56c6413eb3f623aecbbf (patch) | |
| tree | 6d13f14ff8f9bff7c55a30eb046af489d0f677a2 /nihil.cli/command_node.ccm | |
| parent | 2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (diff) | |
| download | nihil-378dd663a402fe196f2b56c6413eb3f623aecbbf.tar.gz nihil-378dd663a402fe196f2b56c6413eb3f623aecbbf.tar.bz2 | |
cli: refactoring
Diffstat (limited to 'nihil.cli/command_node.ccm')
| -rw-r--r-- | nihil.cli/command_node.ccm | 26 |
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 |
