Skip to content

Commit

Permalink
feat: add cli command to open calendar view
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-thevenet committed Dec 28, 2024
1 parent 56c4f50 commit 9123191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl App {
let tab = match args.command {
Some(Commands::Filter) => Action::Focus(Mode::Filter),
Some(Commands::TimeManagement) => Action::Focus(Mode::TimeManagement),
Some(Commands::Calendar) => Action::Focus(Mode::Calendar),
Some(Commands::Explorer | Commands::GenerateConfig { path: _ }) | None => {
Action::Focus(Mode::Explorer)
}
Expand Down
3 changes: 3 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ pub enum Commands {
/// Open Time Management view
#[command(alias = "time")]
TimeManagement,
/// Open Calendar view
#[command(alias = "cld")]
Calendar,
/// Generates a new configuration file from the default one
GenerateConfig { path: Option<PathBuf> },
/// Write tasks to STDOUT
Expand Down

0 comments on commit 9123191

Please sign in to comment.