feat: add recursive namespace routing and standalone runner polish
- introduce namespace-aware routing with RootParseResult, RouteResult, and InvocationContext - register submenus as FalyxNamespace entries and resolve them through _entry_map - refactor FalyxParser to parse only root options and leave recursive routing to Falyx - add prepare_route, resolve_route, and route dispatch flow to Falyx - update validator and completer to understand namespace entries and route results - unify help/TLDR rendering APIs and add custom_tldr support on Command - tighten Command.resolve_args error handling and parser type validation - improve CommandRunner dependency validation and argv handling - add BottomBar.has_items and improve wrapped executor error messages - add tests for execution options, resolve_args, command runner, and route-aware validation
This commit is contained in:
@@ -51,7 +51,7 @@ async def test_render_help(capsys):
|
||||
aliases=["SC"],
|
||||
help_text="This is a sample command.",
|
||||
)
|
||||
await flx._render_help()
|
||||
await flx.render_help()
|
||||
|
||||
captured = capsys.readouterr()
|
||||
assert "This is a sample command." in captured.out
|
||||
@@ -75,7 +75,6 @@ async def test_help_command_by_tag(capsys):
|
||||
await flx.execute_command("H -t tag1")
|
||||
|
||||
captured = capsys.readouterr()
|
||||
print(captured.out)
|
||||
text = Text.from_ansi(captured.out)
|
||||
assert "tag1" in text.plain
|
||||
assert "This command is tagged." in text.plain
|
||||
|
||||
Reference in New Issue
Block a user