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
API Overhaul #8
API Overhaul #8
Conversation
I rearranged most of the functions into AllGroups and AllUsers, and adjusted a lot of the API's. I think this is a more sane way of doing things, but comments are always appreciated. I removed the Iterators and replaced them with the "get" methods. Also lots of docs work. I think it should be fairly straightforward to use this crate now. @jackpot51 I also fixed the bug where empty passwords will accept anything.
Whoopsie-daisy... Notes
|
A full list of accomplishments for this commit can be viewed on my message on the PR to redox_users. My main difficulty is figuring out how to save state for AllUsers and AllGroups (Question of wether to simply write on Drop or add a call for it). 5 other TODO's can be found. @goyox86 I'd like to know what you think about all this.
Alright, I have mostly finished polishing the API. |
Fixed a stupid mistake with User::shell_cmd Implemented AllUsers::save and AllGroups::save for persisting changes to the system. @jackpot51 @goyox86 I'd really like to know what you think about this API. I don't nessesarily like it, but I'm not sure how to implement something else that's more elegant. :/ Also did a bunch of stuff with docs
The only things that I can find that seem to be wrong at this point is a permissions error while working with |
Thanks @MggMuggins, I will review this sometime tomorrow |
I will review sometime time today after work too! |
See my commit message for a little more detail. This is big enough that the git diff doesn't really give you a good idea of everything I did, so maybe take a look at the actual source/documentation as well.
As of opening this PR this API is untested. I'll be doing some testing over the next few days, but I don't recommend merging yet. Merging with a new branch would be an option too.