feat: list contents of current directory
All checks were successful
Test / test (push) Successful in 1m0s
All checks were successful
Test / test (push) Successful in 1m0s
This commit is contained in:
parent
1dbfd9fb7b
commit
a2a9a2ec68
2 changed files with 11 additions and 2 deletions
|
@ -4,3 +4,4 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue