Skip to content

Commit

Permalink
remove purge option from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhenrique committed Apr 27, 2024
1 parent ba7d034 commit 1600909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/lum-marker.json
Original file line number Diff line number Diff line change
@@ -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"}]}
{"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"}]}
14 changes: 4 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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() {
Expand Down Expand Up @@ -252,10 +250,6 @@ fn delete_bookmark() {
println!("Bookmark deleted successfully.");
}

fn purge_bookmarks() {
println!("Purging bookmarks now...");
}

fn quit() {
println!("Goodbye... For now...");
}
Expand Down

0 comments on commit 1600909

Please sign in to comment.