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

Enhanced shell example #112

Merged
merged 8 commits into from
Jan 14, 2024
Merged

Enhanced shell example #112

merged 8 commits into from
Jan 14, 2024

Conversation

thejpster
Copy link
Member

@thejpster thejpster commented Dec 19, 2023

The shell example now supports some relative paths and some new commands.

@thejpster thejpster changed the title Draft: Enhanced shell example Enhanced shell example Dec 19, 2023
examples/shell.rs Outdated Show resolved Hide resolved
examples/shell.rs Outdated Show resolved Hide resolved
@thejpster
Copy link
Member Author

@jannic is this good to go after those changes?

Sometimes you get this error if a *directory* was not found, so it was confusing.
* Converting "" to a ShortFileName, gives you ShortFileName::this_dir() or ".<10 spaces>", which is the special entry at the top of every directory.
* You can open the same directory multiple times. This is required if you want to walk a path, but also hold open a directory in that path.
* Lets you open "." and get a duplicate handle to a directory
* Lets you mutate a Directory object to point at a child, without having to make a new Directory object and drop the old one.
Each command is now a function.
Handle relative paths in "mkdir", "dir", "cat" and "hexdump".

Not currently supported in "cd".
Also volumes are letters.
@thejpster thejpster added this pull request to the merge queue Jan 14, 2024
Merged via the queue into develop with commit ae5e116 Jan 14, 2024
8 checks passed
@thejpster thejpster deleted the enhanced-shell branch July 12, 2024 12:41
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.

2 participants