Skip to content

cmd/cue: add -C flag, like cmd/go #1918

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
myitcv opened this issue Sep 9, 2022 · 0 comments
Open

cmd/cue: add -C flag, like cmd/go #1918

myitcv opened this issue Sep 9, 2022 · 0 comments
Labels
FeatureRequest New feature or request

Comments

@myitcv
Copy link
Member

myitcv commented Sep 9, 2022

Is your feature request related to a problem? Please describe.

See golang/go#50332 for history/context with cmd/go.

Right now, it's not possible to run cmd/cue from one directory, but have it perform commands in the context of another. This is easily solved using cd, or changing a process' working directory... but it's annoying to have to do that.

tar is perhaps one of the most classic examples that uses -C. cmd/go added this flag in https://go-review.googlesource.com/c/go/+/421436.

Describe the solution you'd like

Add a -C flag to cmd/cue, like it was added for cmd/go in https://go-review.googlesource.com/c/go/+/421436.

Describe alternatives you've considered

Per above. Manually having to change directory around the use of cmd/cue.

Additional context

See #1899 for prior discussion.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
FeatureRequest New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants