Minor cleanup

pull/2/head
Mark 2023-08-05 10:05:37 -07:00
parent c56ba3d62e
commit 8b20395b3e
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
5 changed files with 8 additions and 21 deletions

View File

@ -1,4 +1,6 @@
// Select main script for target system
cfg_if::cfg_if! {
if #[cfg(target_family = "unix")] {
mod unix;

View File

@ -13,17 +13,6 @@ use super::promptbuffer::PromptBuffer;
use crate::command;
use crate::context::Context;
/*
Make this a macro:
#[cfg(debug_assertions)]
RawTerminal::suspend_raw_mode(&stdout).unwrap();
code
#[cfg(debug_assertions)]
RawTerminal::activate_raw_mode(&stdout).unwrap();
*/
#[inline(always)]
pub fn main() -> Result<(), std::io::Error> {
@ -43,12 +32,6 @@ pub fn main() -> Result<(), std::io::Error> {
return Ok(());
}
//let size = termion::terminal_size().unwrap();
//write!(stdout, "{:?}", size).unwrap();
'outer: loop {
pb.write_prompt(&mut stdout, &context)?;

View File

@ -6,15 +6,17 @@ pub mod context;
pub mod errors;
pub mod formattedtext;
mod entry;
use crate::entry::main_e;
use crate::parser::substitute;
use crate::errors::DaisyError;
use crate::formattedtext::FormattedText;
use crate::context::Context;
use crate::parser::LineLocation;
// Run main script for target system
mod entrypoint;
use crate::entrypoint::main_e;
#[cfg(test)]
mod tests;