pumpkin print
This commit is contained in:
parent
fb42351638
commit
1fe20360f6
|
@ -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();
|
||||||
|
|
||||||
|
|
1
sysdata/programs/pumpkin_print/README.md
Normal file
1
sysdata/programs/pumpkin_print/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# pumpkin_print
|
11
sysdata/programs/pumpkin_print/meta.toml
Normal file
11
sysdata/programs/pumpkin_print/meta.toml
Normal 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"
|
15
sysdata/programs/pumpkin_print/src/main.hb
Normal file
15
sysdata/programs/pumpkin_print/src/main.hb
Normal 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
|
||||||
|
}
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue