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

ux: Support command docker extension update --install #299

Open
sandipchitale opened this issue Nov 20, 2024 · 1 comment
Open

ux: Support command docker extension update --install #299

sandipchitale opened this issue Nov 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@sandipchitale
Copy link

Is your feature request related to a problem? Please describe.
Many times during iterative development of an extension one may manually uninstall the extension. After that the next command has to use

docker extension install ...

and the repeated:

docker extension update ...

I keep forgetting to up arrow in the shell and change update to install from the previous repeat cycle and then next time switch back 'install' to 'update' again.

Describe the solution you'd like

Support option like

docker extension update --install ...

Especially because the syntax is pretty much the same for install and update.

This request is somewhat analogous to the helm commands option:

`

Upgrade helm release but if absent install

helm upgrade --install ...
`

Hope this makes sense.

Describe alternatives you've considered

Well I can always have two different aliases and remember to use the correct one.

Additional context

@sandipchitale sandipchitale added the enhancement New feature or request label Nov 20, 2024
@sandipchitale sandipchitale changed the title ux: Support command docker extension install-update ux: Support command docker extension update --install Nov 20, 2024
@sandipchitale
Copy link
Author

I am using something like this for now:

docker extension $(docker extension ls | grep --silent kubernetes-dashboard ; if [  $? -eq 0 ] ; then echo 'update' ; else echo 'install' ; fi)  sandipchitale/kubernetes-dashboard:1.0.0 -f

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

No branches or pull requests

1 participant