Refactor logging system to switch between stdout and file logging

* Refactor logging to switch between stdout and file logging

* Use "clear" instead of "tput reset" for unix

* Remove redundant comments
This commit is contained in:
Jason Spalti 2024-12-02 11:51:39 -06:00 committed by GitHub
parent f76dc9cf24
commit ceeec877c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 252 additions and 148 deletions

View file

@ -2,7 +2,6 @@ use super::{commands, Callable, COMMAND_LIST};
use chrono::Local;
use reedline::{Prompt, Reedline, Signal};
use regex::Regex;
use std::{borrow::Borrow, collections::HashMap, sync::Arc};
fn register_commands() {
COMMAND_LIST.add_command(
@ -42,7 +41,7 @@ fn register_commands() {
// EXAMPLE
// Adding aliases for commands
COMMAND_LIST.add_alias("cls".to_string(), "clear".to_string()); // Likely unintended; consider removing or renaming.
COMMAND_LIST.add_alias("clear".to_string(), "cls".to_string());
}
struct ZPrompt {