Skip to content

implemented runuser - #612

Open
mustafaelrasheid wants to merge 7 commits into
uutils:mainfrom
mustafaelrasheid:implement_runuser
Open

implemented runuser#612
mustafaelrasheid wants to merge 7 commits into
uutils:mainfrom
mustafaelrasheid:implement_runuser

Conversation

@mustafaelrasheid

Copy link
Copy Markdown

I've implemented a basic version of runuser and I feel honored to be able to share it.
This is my first ever contribution and I was a bit hesitant to share it because of how complex the argument parsing was, but it came out well.

.map(|s| s.to_string())
.collect::<Vec<_>>()
.to_vec();
let (username, path, command_args) = match matches.get_one::<String>("user") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe move this into a function?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Just to clarify, do you mean the parsing for username, path and command_args or the entirety of the args parsing?

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