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

Overriding the context fails #70

Closed
ctron opened this issue May 19, 2021 · 1 comment
Closed

Overriding the context fails #70

ctron opened this issue May 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ctron
Copy link
Member

ctron commented May 19, 2021

➜  ~ env DRG_CONTEXT=sandbox drg get apps
NAME         AGE
ctron        48d
ctron-app1   48d
ctron-mitemp 4d111h
ctron-opcua  4d115h
➜  ~ env DRG_CONTEXT=devbox drg get apps
NAME         AGE
ctron        48d
ctron-app1   48d
ctron-mitemp 4d111h
ctron-opcua  4d115h
➜  ~ drg get -c devbox apps
NAME         AGE
ctron        48d
ctron-app1   48d
ctron-mitemp 4d111h
ctron-opcua  4d115h
➜  ~ drg context set-active devbox
Switched active context to: devbox
➜  ~ drg get apps
NAME       AGE
ctron-ttn  35d
ctron-ttn2 35d
ctron-ttn3 7d
@ctron ctron added the bug Something isn't working label May 19, 2021
@jbtrystram
Copy link
Member

It's due to this : clap-rs/clap#1570
I tried to write a workaround but I am running into : rust-lang/rust#71126 (unstable feature)

So i may move --context back as a root-level global arg, despite the oddness of having it defined in the context subcommand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants