magic
This commit is contained in:
19
src/conf.rs
19
src/conf.rs
@@ -1 +1,20 @@
|
||||
//This is the system for text configs
|
||||
use std::fs::File;
|
||||
use std::io::prelude::*;
|
||||
use std::path::Path;
|
||||
|
||||
|
||||
pub fn check(fileLocation: str){
|
||||
let confPath = Path::new(fileLocation);
|
||||
let confDisplay = confPath.display();
|
||||
let mut confFile = match File::open(&confPath){
|
||||
Err(why) =>
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fn createConf(fileLocation: str){
|
||||
|
||||
|
||||
}
|
||||
@@ -3,13 +3,15 @@ use crossterm::event::{self, Event};
|
||||
use ratatui::{DefaultTerminal, Frame};
|
||||
use ratatui::layout::{Constraint, Layout};
|
||||
use ratatui::widgets::Block;
|
||||
mod conf;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
fn main() -> Result<()> {
|
||||
color_eyre::install()?;
|
||||
let terminal = ratatui::init();
|
||||
let result = run(terminal);
|
||||
ratatui::restore();
|
||||
result
|
||||
|
||||
}
|
||||
|
||||
fn run(mut terminal: DefaultTerminal) -> Result<()> {
|
||||
|
||||
1
src/sectionBuilder.rs
Normal file
1
src/sectionBuilder.rs
Normal file
@@ -0,0 +1 @@
|
||||
// this will take info from the conf to create each section
|
||||
Reference in New Issue
Block a user