Pass the path to the ui builder function when creating a mock application
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
26b05b4bb9
commit
e331b9efb3
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ macro_rules! make_mock_app {
|
|||
modulename $module:ident;
|
||||
version $version:expr;
|
||||
with help $help:expr;
|
||||
with ui builder function $buildui:path;
|
||||
}=> {
|
||||
mod $module {
|
||||
use clap::{App, ArgMatches};
|
||||
|
@ -64,7 +65,7 @@ macro_rules! make_mock_app {
|
|||
fn new(args: Vec<&'static str>) -> Self {
|
||||
MockLinkApp {
|
||||
args: args,
|
||||
inner: ::build_ui(Runtime::get_default_cli_builder($appname, $version, $help)),
|
||||
inner: ($buildui)(Runtime::get_default_cli_builder($appname, $version, $help)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue