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

Feature request: parse complete command string to List<String> args #250

Open
erlangparasu opened this issue Jul 17, 2023 · 3 comments
Open

Comments

@erlangparasu
Copy link

erlangparasu commented Jul 17, 2023

Parse complete command string to List

@erlangparasu
Copy link
Author

Example

final commandParser = RawCommandParser();
List<String> args = commandParser.parse('git branch -v');
// ["git", "branch", "-v"]

@jakemac53
Copy link
Contributor

jakemac53 commented Jul 17, 2023

This is done at a higher level generally (since main takes a List<String> already). What is the use case that you have for this? There are probably a lot more edge cases than you might think, and I am not sure it's something we really want to own/maintain.

@erlangparasu
Copy link
Author

my use case is for parsing complete command for example curl command

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

No branches or pull requests

2 participants