Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
feat: improved about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatFrogDev committed Mar 12, 2024
1 parent efe2a69 commit e1b253f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ use crate::{
note::Note,
prompts::{multiselect::multiselect, select::select},
return_to_main::return_to_main,
utilities::{cursor_to_origin::cursor_to_origin, truncate_note::truncate_note},
utilities::{cursor_to_origin::cursor_to_origin, truncate_note::truncate_note, format_md::{inline, paragraph}},
};
use termimad::MadSkin;
use async_std::path::PathBuf;
use directories::BaseDirs;

Expand Down Expand Up @@ -42,18 +43,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
5 => exit(0),
_ => (),
}

/*if return_to_main().is_ok() {
main()?;
}*/
}
}

fn display_about() -> Result<(), Box<dyn std::error::Error>> {
let skin: MadSkin = MadSkin::default();

cursor_to_origin()?;
println!("Notabena is a FOSS note-taking CLI tool, written in Rust.");
println!("License: GPL v3\n");
println!("COPYRIGHT (c) 2024 NOTABENA ORGANISATION\nPROJECT LEADS @ThatFrogDev, @MrSerge01, GITHUB CONTRIBUTORS\n");
println!("{}", paragraph(&skin, &format!("# About Notabena")));
println!("{}", inline(&skin, "**Notabena** is a FOSS note-taking CLI tool, written in Rust.\n"));
println!("version: v{}, licensed under: GPL v3", env!("CARGO_PKG_VERSION"));
println!("COPYRIGHT (c) 2023-PRESENT NOTABENA ORGANISATION\nPROJECT LEADS @ThatFrogDev, @MrSerge01, GITHUB CONTRIBUTORS\n");

Ok(())
}

0 comments on commit e1b253f

Please sign in to comment.