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

cp: compile without clap (for nushell) #5203

Open
tertsdiepraam opened this issue Aug 24, 2023 · 0 comments · May be fixed by #5358
Open

cp: compile without clap (for nushell) #5203

tertsdiepraam opened this issue Aug 24, 2023 · 0 comments · May be fixed by #5358
Labels

Comments

@tertsdiepraam
Copy link
Member

Context: nushell/nushell#10097

All the utils include a clap-based argument parser. If we want to expose the internals of the utils, it should also be possible to only compile the internals without the argument parser and the clap dependency. This is a request from nushell, where they want to reuse our utils with their own argument parsing.

So, we should introduce a feature (e.g. called "cli", "parser" or "uumain", I'm not sure), which enables the uumain function and the clap parser. This should probably be enabled by default (nushell can then include it with default-features = false).

To compile entirely without clap, uucore also needs to be able to compile without clap. This issue is therefore also relevant: #5202.

@tertsdiepraam tertsdiepraam changed the title cp: compile without clap support cp: compile without clap Aug 24, 2023
@tertsdiepraam tertsdiepraam changed the title cp: compile without clap cp: compile without clap (for nushell) Aug 24, 2023
@tommady tommady linked a pull request Oct 5, 2023 that will close this issue
@cakebaker cakebaker linked a pull request Oct 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants