FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

implemented runuser by mustafaelrasheid · Pull Request #612 · uutils/util-linux · GitHub

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL