feat(cli): arg --menu (#37)

- Add `--menu` to args
- Add `--version` to args
- Change default behavior: At a first run of the app, the menu will be shown by default (similar to what @tschinz suggested in #33). However, if an user hides the menu later and closes the app, the menu will be hidden again with a next start. Just because the app restores the last app state.
This commit is contained in:
Jens K.
2025-01-01 15:13:10 +01:00
committed by GitHub
parent e674314207
commit a4f8885eb1
5 changed files with 11 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ impl Default for AppStorage {
const DEFAULT_COUNTDOWN: Duration = Duration::from_secs(60 * 10); /* 10min */
AppStorage {
content: Content::default(),
show_menu: false,
show_menu: true,
style: Style::default(),
with_decis: false,
pomodoro_mode: PomodoroMode::Work,