changed some stuff

This commit is contained in:
FantasyPvP
2023-09-27 00:42:04 +01:00
parent 45304c26d8
commit 76a2ec2163
8 changed files with 88 additions and 58 deletions
+9 -5
View File
@@ -123,17 +123,21 @@ async fn exec() -> Result<(), Error> {
}
"random" => {
use crate::std::random::Random;
let vec = Vec::from(["a", "b", "c", "d", "e", "f"]);
let sel = Random::selection(vec);
println!("{}", sel);
let vec = Vec::from(["is", "is not", "is absolutely"]);
let vec2 = Vec::from(["simp", "gigachad", "genius", "bozo", "Non simp"]);
let sel = *Random::selection(&vec);
let sel2 = *Random::selection(&vec2);
println!("panic attack {} a {}", sel, sel2);
}
"filesystem" => {
use crate::std::io;
io::mkfs();
}
"test_features" => {
use crate::user::lib::libgui;
libgui::libgui_core::test_elements();
use crate::std::random::Random;
println!("{}", Random::int(0, 10));
// use crate::user::lib::libgui;
// libgui::libgui_core::test_elements();
}
_ => {
return Err(Error::UnknownCommand(