diff --git a/clock-tui/src/app.rs b/clock-tui/src/app.rs index a168e05..56a68a5 100644 --- a/clock-tui/src/app.rs +++ b/clock-tui/src/app.rs @@ -22,6 +22,9 @@ use self::modes::Timer; pub mod modes; +/// This application does not only offer a clock, but also a few other modes. This enum allows to +/// specify on the command line, which mode should be used and what additional options it should +/// receive. #[derive(Debug, Subcommand)] pub enum Mode { /// The clock mode displays the current time, the default mode. @@ -98,6 +101,7 @@ pub enum Mode { #[derive(clap::Parser)] #[clap(name = "tclock", about = "A clock app in terminal", long_about = None)] +/// Represents the TUI Application that can be pub struct App { #[clap(subcommand)] pub mode: Option,