feat: list contents of current directory
All checks were successful
Test / test (push) Successful in 1m0s

This commit is contained in:
Paul Campbell 2024-09-17 16:48:09 +01:00
parent 1dbfd9fb7b
commit a2a9a2ec68
2 changed files with 11 additions and 2 deletions

View file

@ -4,3 +4,4 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0"

View file

@ -1,3 +1,11 @@
fn main() {
println!("Hello, world!");
fn main() -> anyhow::Result<()> {
println!("Forgejo TODO Checker!");
// list files in current directory to get a feel for what we have access to
std::fs::read_dir(".")?
.filter_map(Result::ok)
.map(|e| e.path())
.for_each(|e| println!("{e:?}"));
Ok(())
}