Fix indention
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
b6facfff6b
commit
ee739e17fc
1 changed files with 15 additions and 15 deletions
|
@ -82,40 +82,40 @@ mod util;
|
||||||
pub enum ImagCalendar {}
|
pub enum ImagCalendar {}
|
||||||
impl ImagApplication for ImagCalendar {
|
impl ImagApplication for ImagCalendar {
|
||||||
fn run(rt: Runtime) -> Result<()> {
|
fn run(rt: Runtime) -> Result<()> {
|
||||||
if let Some(name) = rt.cli().subcommand_name() {
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
debug!("Call {}", name);
|
debug!("Call {}", name);
|
||||||
match name {
|
match name {
|
||||||
"import" => import(&rt),
|
"import" => import(&rt),
|
||||||
"list" => list(&rt),
|
"list" => list(&rt),
|
||||||
"show" => show(&rt),
|
"show" => show(&rt),
|
||||||
other => {
|
other => {
|
||||||
warn!("Right now, only the 'import' command is available");
|
warn!("Right now, only the 'import' command is available");
|
||||||
debug!("Unknown command");
|
debug!("Unknown command");
|
||||||
let _ = rt.handle_unknown_subcommand("imag-calendar", other, rt.cli())
|
let _ = rt.handle_unknown_subcommand("imag-calendar", other, rt.cli())
|
||||||
.map_err_trace_exit_unwrap()
|
.map_err_trace_exit_unwrap()
|
||||||
.code()
|
.code()
|
||||||
.map(::std::process::exit);
|
.map(::std::process::exit);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_cli<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
|
fn build_cli<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
|
||||||
ui::build_ui(app)
|
ui::build_ui(app)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn name() -> &'static str {
|
fn name() -> &'static str {
|
||||||
env!("CARGO_PKG_NAME")
|
env!("CARGO_PKG_NAME")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn description() -> &'static str {
|
fn description() -> &'static str {
|
||||||
"Calendar management tool"
|
"Calendar management tool"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn version() -> &'static str {
|
fn version() -> &'static str {
|
||||||
env!("CARGO_PKG_VERSION")
|
env!("CARGO_PKG_VERSION")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue