fixed windows issue

This commit is contained in:
Penwing 2024-01-27 23:39:36 +01:00
parent ee5c845d7f
commit 899ebf37b0
2 changed files with 4 additions and 2 deletions

View file

@ -18,10 +18,12 @@ pub mod file_tree;
#[cfg(target_os = "linux")]
pub mod terminal;
#[cfg(target_os = "linux")]
pub use terminal::*;
#[cfg(target_os = "windows")]
pub mod windows_terminal;
#[cfg(target_os = "windows")]
pub use windows_terminal::*;
pub mod tabs;

View file

@ -31,7 +31,7 @@ impl CommandEntry {
CommandEntry {
env,
command,
result: vec![Line::error("General Kenobi")],
result: vec![Line::error("General Kenobi".to_string())],
}
}
@ -41,7 +41,7 @@ impl CommandEntry {
}
pub fn send_command(command: String) -> CommandEntry {
return CommandEntry::new("windows>", "hello there");
return CommandEntry::new("windows>".to_string(), "hello there".to_string());
}