Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a little shell example. #100

Merged
merged 5 commits into from
Oct 9, 2023
Merged

Add a little shell example. #100

merged 5 commits into from
Oct 9, 2023

Conversation

thejpster
Copy link
Member

You can walk around a disk image and do directory listings. I had to make some more things 'Debug' so I could print the filesystem state. Also our handling of ".." was not right so I fixed that.

You can walk around a disk image and do directory listings. I had to make some more things 'Debug' so I could print the filesystem state. Also our handling of ".." was not right so I fixed that.
Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Could you add an entry to the changelog and have a look at the CI?

Also moved the code into a method so we can use ?. Although ? is a pain when your objects cannot safely be dropped.
@thejpster thejpster changed the title Draft: Add a little shell example. Add a little shell example. Oct 3, 2023
@thejpster
Copy link
Member Author

@eldruin added as requested. Should be ready now.

@thejpster thejpster mentioned this pull request Oct 7, 2023
@thejpster thejpster enabled auto-merge October 8, 2023 11:11
@thejpster thejpster requested a review from ryan-summers October 9, 2023 06:57
}

fn process_line(&mut self, line: &str) -> Result<(), Error<std::io::Error>> {
if line == "help" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, https://docs.rs/logos/latest/logos/ is really nice for things like this :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! I'll check it out.

@thejpster thejpster added this pull request to the merge queue Oct 9, 2023
Merged via the queue into develop with commit 94eb91f Oct 9, 2023
8 checks passed
@thejpster thejpster deleted the add-shell branch October 9, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants