From ebe4cb0bdeabd06a31072547af47cacaab7f78c0 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 2 Jul 2025 05:49:47 +0100 Subject: replace nihil::generator the new implementation is much simpler and PD-licensed. the only downside is it doesn't support elements_of. while here, move it to nihil.core. --- nihil.cli/CMakeLists.txt | 1 - nihil.cli/command_tree.ccm | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'nihil.cli') diff --git a/nihil.cli/CMakeLists.txt b/nihil.cli/CMakeLists.txt index e87d3d4..8f4d1ea 100644 --- a/nihil.cli/CMakeLists.txt +++ b/nihil.cli/CMakeLists.txt @@ -5,7 +5,6 @@ add_library(nihil.cli STATIC) target_link_libraries(nihil.cli PRIVATE nihil.std nihil.core - nihil.generator nihil.posix ) diff --git a/nihil.cli/command_tree.ccm b/nihil.cli/command_tree.ccm index 844b2cf..4c341b7 100644 --- a/nihil.cli/command_tree.ccm +++ b/nihil.cli/command_tree.ccm @@ -2,7 +2,6 @@ export module nihil.cli:command_tree; import nihil.std; -import nihil.generator; import nihil.core; import :command; @@ -103,7 +102,8 @@ struct command_tree_node final { for (auto &&node : self.m_children | std::views::values) { co_yield node; - co_yield elements_of(node.all_children()); + for (auto &&child : node.all_children()) + co_yield child; } } -- cgit v1.2.3