Shuffles modules around so the arg
module is for exclusively arguments
SM7AIPUZE62XT62C56UYGTYOSTWLQYAIG7S2CJAHWWULSLVWXEHQC
NSWIJUHGFP34MVP46XYEKFEWQN6TEGDFSX3A7PIPVDOORTE5CB5QC
G54GZBS464DFT2224SUTRWPRRSLUQKWDXY2YA7USW7UZ7VPXIHEAC
BMG4FSHNV54VXDHNUVGZOMXQJWLFSUF3M5NCN7GJETNIF3QTHELQC
C73UJ7ZYG4EE3YTK3N66GXPNWJHEBSRE4PDQBWMN6SKQ3U6ZYKXAC
MIY7QPYK3EZTOGZF5PWU2ZKM7NG5ANWKNHS56FVTOY7PPATWLSSAC
ZYNEMGAZXWHIWGNPB2RTYG3JWTH5Y5XY4JWJ3TTPANIOORTCLISAC
JFJVY57RWKT6YJ62MWWOHXSLASLWPORFUGF67TVTW4FW7XBZEAUQC
ZVDBFCW7ENFTFLAPTPHYWGXVSW2W7URZ2IJK67YAMDZVUYEXZIXAC
fn sidebar(state: &AppState) -> impl View<AppState> + ViewMarker {
let arg_matches = state.arg_matches.as_ref().ok();
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")
}
pub fn sidebar(state: &AppState) -> impl View<AppState> + ViewMarker {
let arg_matches = state.arg_matches.as_ref().ok();
el::div((
args_view(&state.command, arg_matches),
state
.command
.get_subcommands()
.map(|subcommand| {
args_view(
subcommand,
arg_matches.and_then(|arg_matches| {
arg_matches.subcommand_matches(subcommand.get_name())
}),
)
})
.collect::<Vec<_>>(),
))
.attr("id", "sidebar")
}