diff --git a/dev/src/main.rs b/dev/src/main.rs index 42406436c..c71282214 100644 --- a/dev/src/main.rs +++ b/dev/src/main.rs @@ -72,6 +72,27 @@ pub fn new(development_type: DevelopmentType, name: String) { let readme_contents = format!("# {}", name); 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); std::fs::create_dir(src_folder_path_string.clone()).unwrap(); diff --git a/sysdata/programs/pumpkin_print/README.md b/sysdata/programs/pumpkin_print/README.md new file mode 100644 index 000000000..389887d1b --- /dev/null +++ b/sysdata/programs/pumpkin_print/README.md @@ -0,0 +1 @@ +# pumpkin_print \ No newline at end of file diff --git a/sysdata/programs/pumpkin_print/meta.toml b/sysdata/programs/pumpkin_print/meta.toml new file mode 100644 index 000000000..c1c49b296 --- /dev/null +++ b/sysdata/programs/pumpkin_print/meta.toml @@ -0,0 +1,11 @@ +[package] +name = "pumpkin_print" +authors = [""] + +[dependants.libraries] + +[dependants.binaries] +hblang.version = "1.0.0" + +[build] +command = "hblang src/main.hb" diff --git a/sysdata/programs/pumpkin_print/src/main.hb b/sysdata/programs/pumpkin_print/src/main.hb new file mode 100644 index 000000000..a047fd1f7 --- /dev/null +++ b/sysdata/programs/pumpkin_print/src/main.hb @@ -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 +} \ No newline at end of file diff --git a/sysdata/system_config.toml b/sysdata/system_config.toml index 28d2c3199..f8f4fbb95 100644 --- a/sysdata/system_config.toml +++ b/sysdata/system_config.toml @@ -43,3 +43,6 @@ resolution = "1024x768x24" [boot.limine.ableos.modules.svga_driver] path = "boot:///svga_driver.hbf" + +[boot.limine.ableos.modules.pumpkin_print] +path = "boot:///pumpkin_print.hbf"