Recursively return subcommands in `command_view`
Dependencies
- [2]
6FCEG2XLRefactor argument documentation into generic function - [3]
JFJVY57RList `clap` argument IDs - [4]
C73UJ7ZYCreate simple `xilem_html` demo - [5]
SM7AIPUZCreate `command` module
Change contents
- replacement in src/main.rs at line 51
el::div((command_view(&state.command, arg_matches),state.command.get_subcommands().map(|subcommand| {command_view(subcommand,arg_matches.and_then(|arg_matches| {arg_matches.subcommand_matches(subcommand.get_name())}),)}).collect::<Vec<_>>(),)).attr("id", "sidebar")el::div(command_view(&state.command, arg_matches)).attr("id", "sidebar") - replacement in src/command.rs at line 3
use xilem_html::{elements as el, ViewSequence};use xilem_html::{elements as el, AnyView, View, ViewMarker, ViewSequence}; - replacement in src/command.rs at line 21
) -> impl ViewSequence<AppState> {el::section(() -> Box<dyn AnyView<AppState>> {Box::new(el::section(( - replacement in src/command.rs at line 26
))command.get_subcommands().map(|subcmd| {command_view(subcmd,arg_matches.and_then(|arg_matches| arg_matches.subcommand_matches(subcmd.get_name())),)}).collect::<Vec<_>>(),)))