Merge branch 'feat/timebar' of https://git.cscherr.de/PlexSheep/crock into feat/timebar

This commit is contained in:
Christoph J. Scherr 2024-07-10 01:39:06 +02:00
commit 5756947a87
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#![warn(clippy::pedantic, clippy::style, clippy::nursery)] #![warn(clippy::pedantic, clippy::style, clippy::nursery)]
#![allow(clippy::question_mark_used)] #![allow(clippy::question_mark_used)]
use chrono::{DateTime, Datelike, Local, NaiveDateTime, SubsecRound, Timelike}; use chrono::{DateTime, Datelike, Local, SubsecRound, Timelike};
use clap::Parser; use clap::Parser;
use libpt::cli::args::HELP_TEMPLATE; use libpt::cli::args::HELP_TEMPLATE;
use libpt::cli::clap::builder::styling::Color; use libpt::cli::clap::builder::styling::Color;
@ -38,7 +38,7 @@ impl TimeBarLength {
impl Default for TimeBarLength { impl Default for TimeBarLength {
fn default() -> Self { fn default() -> Self {
TimeBarLength::Minute Self::Minute
} }
} }
@ -46,7 +46,7 @@ impl Default for TimeBarLength {
#[derive(Parser, Debug, Clone)] #[derive(Parser, Debug, Clone)]
#[command(help_template = HELP_TEMPLATE, author, version)] #[command(help_template = HELP_TEMPLATE, author, version)]
#[clap(group( ArgGroup::new("timebarlen") .args(&["minute","day", "hour", "custom"]),))] #[clap(group( ArgGroup::new("timebarlen") .args(&["minute","day", "hour", "custom"]),))]
pub(crate) struct Clock { pub struct Clock {
#[command(flatten)] #[command(flatten)]
pub verbose: VerbosityLevel, pub verbose: VerbosityLevel,
/// Show time since start /// Show time since start