fix(exit): print exit message on exit via ctrl-d
This commit is contained in:
parent
7fbaec8743
commit
4435b375ef
2 changed files with 11 additions and 7 deletions
16
notes.org
16
notes.org
|
|
@ -31,16 +31,12 @@ CLOCK: [2025-05-03 sam. 18:48]--[2025-05-03 sam. 18:49] => 0:01
|
||||||
CLOCK: [2025-05-03 sam. 18:49]--[2025-05-03 sam. 18:57] => 0:08
|
CLOCK: [2025-05-03 sam. 18:49]--[2025-05-03 sam. 18:57] => 0:08
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
** TODO insta test startup message
|
** DONE insta test startup message
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:EFFORT: 10min
|
:EFFORT: 10min
|
||||||
:END:
|
:END:
|
||||||
:LOGBOOK:
|
:LOGBOOK:
|
||||||
CLOCK: [2025-05-03 sam. 19:00]
|
CLOCK: [2025-05-03 sam. 19:00]--[2025-05-03 sam. 19:05] => 0:05
|
||||||
:END:
|
|
||||||
** TODO insta test exit message
|
|
||||||
:PROPERTIES:
|
|
||||||
:EFFORT: 10min
|
|
||||||
:END:
|
:END:
|
||||||
** TODO insta test insert
|
** TODO insta test insert
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|
@ -62,3 +58,11 @@ CLOCK: [2025-05-03 sam. 19:00]
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:EFFORT: 10min
|
:EFFORT: 10min
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
|
* DONE exit message is not displayed when pressing C-d :bug:
|
||||||
|
:PROPERTIES:
|
||||||
|
:EFFORT: 10min
|
||||||
|
:END:
|
||||||
|
:LOGBOOK:
|
||||||
|
CLOCK: [2025-05-03 sam. 19:06]--[2025-05-03 sam. 19:07] => 0:01
|
||||||
|
:END:
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ fn main() {
|
||||||
match input.parse::<Command>() {
|
match input.parse::<Command>() {
|
||||||
Ok(cmd) => {
|
Ok(cmd) => {
|
||||||
if cmd.execute().should_exit {
|
if cmd.execute().should_exit {
|
||||||
println!("Good-bye");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => err.display(),
|
Err(err) => err.display(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
println!("Good-bye");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue