asdf
This commit is contained in:
parent
a575677898
commit
0db408e3ff
|
@ -3,7 +3,7 @@
|
||||||
pkgname=rustmon-git
|
pkgname=rustmon-git
|
||||||
pkgdesc="Pokemon Colorscripts written in Rust"
|
pkgdesc="Pokemon Colorscripts written in Rust"
|
||||||
_gitname=rustmon
|
_gitname=rustmon
|
||||||
pkgver=r26.2b2a15c
|
pkgver=r27.a575677
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/Vomitblood/$_gitname"
|
url="https://github.com/Vomitblood/$_gitname"
|
||||||
|
|
|
@ -27,16 +27,15 @@ const GENERATIONS: [(&str, (u32, u32)); 8] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
fn print_file(filepath: &str) -> std::io::Result<()> {
|
fn print_file(filepath: &str) -> std::io::Result<()> {
|
||||||
if let Some(file) = ColorScriptsDir::get(filepath) {
|
ColorScriptsDir::get(filepath)
|
||||||
|
.map(|file| {
|
||||||
let content = std::str::from_utf8(file.data.as_ref()).unwrap();
|
let content = std::str::from_utf8(file.data.as_ref()).unwrap();
|
||||||
println!("{}", content);
|
println!("{}", content);
|
||||||
Ok(())
|
})
|
||||||
} else {
|
.ok_or(std::io::Error::new(
|
||||||
Err(std::io::Error::new(
|
|
||||||
std::io::ErrorKind::NotFound,
|
std::io::ErrorKind::NotFound,
|
||||||
"File not found",
|
"File not found",
|
||||||
))
|
))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn list_pokemon_names() -> std::io::Result<()> {
|
fn list_pokemon_names() -> std::io::Result<()> {
|
||||||
|
|
Loading…
Reference in a new issue