summaryrefslogtreecommitdiff
path: root/src/main.rs
AgeCommit message (Collapse)Author
2022-12-12day12Martin Ashby
2022-12-11day11Martin Ashby
This one took a lot longer than I'd like!
2022-12-10day10Martin Ashby
2022-12-09day9Martin Ashby
2022-12-09day8Martin Ashby
2022-12-07day7Martin Ashby
This one was a little trickier, as the obvious solution for navigating back up a tree is to keep a reference to the parent. However that's essentially a doubly linked list which is a pain in the ass in Rust. Instead, use a separate variable for the current 'key' into the tree I'm not especially happy with the terminal processing as well, since after the 'ls' command we need to 'peek' at the next entry to see if the 'ls' has finished and we're onto a next command I couldn't think of a very good way to do this except loops and loops.
2022-12-06Day 6Martin Ashby
Reasonably simple this one :)
2022-12-05day5Martin Ashby
Not super happy with this, fell back to iterative programming pretty heavily (: Also a ton of .unwrap(), but this is an artifical problem not a real world
2022-12-04day4Martin Ashby
2022-12-03Days 1-3Martin Ashby