1
0
Fork 0
forked from AbleOS/ableos

pumpkin print

This commit is contained in:
Able 2024-09-16 20:59:24 -05:00
parent fb42351638
commit 1fe20360f6
5 changed files with 51 additions and 0 deletions

View file

@ -72,6 +72,27 @@ pub fn new(development_type: DevelopmentType, name: String) {
let readme_contents = format!("# {}", name); let readme_contents = format!("# {}", name);
readme_file.write_all(readme_contents.as_bytes()).unwrap(); readme_file.write_all(readme_contents.as_bytes()).unwrap();
let contents = format!(
"[package]
name = \"{}\"
authors = [\"\"]
[dependants.libraries]
[dependants.binaries]
hblang.version = \"1.0.0\"
[build]
command = \"hblang src/main.hb\"
",
name
);
let toml_path_string = format!("{}/meta.toml", project_folder_path_string);
let mut readme_file = std::fs::File::create(toml_path_string.clone()).unwrap();
readme_file.write_all(contents.as_bytes()).unwrap();
let src_folder_path_string = format!("{}/src", project_folder_path_string); let src_folder_path_string = format!("{}/src", project_folder_path_string);
std::fs::create_dir(src_folder_path_string.clone()).unwrap(); std::fs::create_dir(src_folder_path_string.clone()).unwrap();

View file

@ -0,0 +1 @@
# pumpkin_print

View file

@ -0,0 +1,11 @@
[package]
name = "pumpkin_print"
authors = [""]
[dependants.libraries]
[dependants.binaries]
hblang.version = "1.0.0"
[build]
command = "hblang src/main.hb"

View file

@ -0,0 +1,15 @@
stn := @use("../../../libraries/stn/src/lib.hb")
main := fn(): int {
stn.log.info("\r
__)_)__\r
.-'._'-'_.'-.\r
.'.' |o|'|o| '.'.\r
| : ._: A :_. : |\r
| : '=.:.=' : |\r
| : :'.___.': : |\r
'-:__:__:__:__:-'\r
\0")
return 0
}

View file

@ -43,3 +43,6 @@ resolution = "1024x768x24"
[boot.limine.ableos.modules.svga_driver] [boot.limine.ableos.modules.svga_driver]
path = "boot:///svga_driver.hbf" path = "boot:///svga_driver.hbf"
[boot.limine.ableos.modules.pumpkin_print]
path = "boot:///pumpkin_print.hbf"