From 1600909c9b35d9daa91209a32a1e6ca1b9a75f37 Mon Sep 17 00:00:00 2001 From: Henrique Marques Date: Sun, 28 Apr 2024 00:51:04 +0100 Subject: [PATCH] remove purge option from menu --- assets/lum-marker.json | 2 +- src/main.rs | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/assets/lum-marker.json b/assets/lum-marker.json index 51b5069..450c90d 100644 --- a/assets/lum-marker.json +++ b/assets/lum-marker.json @@ -1 +1 @@ -{"owner":"admin","created_at":1714182655,"bookmarks":[{"title":"Hyouka - Saint Pepsi","link":"https://www.youtube.com/watch?v=SpQCuPTWrrI"},{"title":"【original anime MV】SHINKIRO【hololive/宝鐘マリン・Gawr Gura】","link":"https://www.youtube.com/watch?v=9ehwhQJ50gs"},{"title":"【MV】Lucky☆Orb feat. Hatsune Miku by emon(Tes.) / ラッキー☆オーブ feat. 初音ミク by emon(Tes.) 【MIKU EXPO 5th】","link":"https://www.youtube.com/watch?v=AufydOsiD6M"},{"title":"[Ochame Kinou] hololive Fukkireta Chorus [24 VTubers]","link":"https://www.youtube.com/watch?v=9kQ2GtvDV3s"},{"title":"【MV】White Love/SPEED (Cover)【FUWAMOCO】","link":"https://www.youtube.com/watch?v=D8YflSQi1Vk"},{"title":"Re:Zero ED / Ending 2 Full『Emilia (Rie Takahashi) - Stay Alive』【ENG Sub】","link":"https://www.youtube.com/watch?v=z-NuxWkYtlI"},{"title":"arrays and vectors in rust (btw)","link":"https://www.cs.brandeis.edu/~cs146a/rust/doc-02-21-2015/book/arrays-vectors-and-slices.html"},{"title":"lambda expressions","link":"https://www.gnu.org/software/emacs/manual/html_node/eintr/lambda.html"}]} \ No newline at end of file +{"owner":"admin","created_at":1714182655,"bookmarks":[{"title":"【original anime MV】SHINKIRO【hololive/宝鐘マリン・Gawr Gura】","link":"https://www.youtube.com/watch?v=9ehwhQJ50gs"},{"title":"【MV】Lucky☆Orb feat. Hatsune Miku by emon(Tes.) / ラッキー☆オーブ feat. 初音ミク by emon(Tes.) 【MIKU EXPO 5th】","link":"https://www.youtube.com/watch?v=AufydOsiD6M"},{"title":"【MV】White Love/SPEED (Cover)【FUWAMOCO】","link":"https://www.youtube.com/watch?v=D8YflSQi1Vk"},{"title":"Re:Zero ED / Ending 2 Full『Emilia (Rie Takahashi) - Stay Alive』【ENG Sub】","link":"https://www.youtube.com/watch?v=z-NuxWkYtlI"},{"title":"arrays and vectors in rust (btw)","link":"https://www.cs.brandeis.edu/~cs146a/rust/doc-02-21-2015/book/arrays-vectors-and-slices.html"},{"title":"lambda expressions","link":"https://www.gnu.org/software/emacs/manual/html_node/eintr/lambda.html"}]} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 6e533c6..8e5589e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,10 +65,9 @@ fn handle_options_from_user_input() { 1 => add_new_bookmark(), 2 => view_bookmarks(), 3 => delete_bookmark(), - 4 => purge_bookmarks(), - 5 => quit(), + 4 => quit(), // We don't actually need this 6th here - just a convenience - 6 => { + 5 => { match generate_lum() { Ok(_) => (), Err(e) => println!("Error due to: {}", e), @@ -87,9 +86,8 @@ fn print_options() { println!("1 - Add new bookmark;"); println!("2 - View bookmarks;"); println!("3 - Delete a bookmark;"); - println!("4 - Purge bookmarks;"); - println!("5 - Quit;"); - println!("6 - Generate Lum;"); + println!("4 - Quit;"); + println!("5 - Generate Lum;"); } fn add_new_bookmark() { @@ -252,10 +250,6 @@ fn delete_bookmark() { println!("Bookmark deleted successfully."); } -fn purge_bookmarks() { - println!("Purging bookmarks now..."); -} - fn quit() { println!("Goodbye... For now..."); }