generated from PlexSheep/rs-base
doc comments for app structs
This commit is contained in:
parent
cae72977e6
commit
b5810a24b2
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,9 @@ use self::modes::Timer;
|
||||||
|
|
||||||
pub mod modes;
|
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)]
|
#[derive(Debug, Subcommand)]
|
||||||
pub enum Mode {
|
pub enum Mode {
|
||||||
/// The clock mode displays the current time, the default mode.
|
/// The clock mode displays the current time, the default mode.
|
||||||
|
@ -98,6 +101,7 @@ pub enum Mode {
|
||||||
|
|
||||||
#[derive(clap::Parser)]
|
#[derive(clap::Parser)]
|
||||||
#[clap(name = "tclock", about = "A clock app in terminal", long_about = None)]
|
#[clap(name = "tclock", about = "A clock app in terminal", long_about = None)]
|
||||||
|
/// Represents the TUI Application that can be
|
||||||
pub struct App {
|
pub struct App {
|
||||||
#[clap(subcommand)]
|
#[clap(subcommand)]
|
||||||
pub mode: Option<Mode>,
|
pub mode: Option<Mode>,
|
||||||
|
|
Reference in a new issue