-
Notifications
You must be signed in to change notification settings - Fork 2k
improve cmd shell support #1493
improve cmd shell support #1493
Conversation
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
why the new line after DOCKER_CERT_PATH? Also I'm thinking if we should make console cmds uppercase like SET REM.. |
Also how about adding a \t before the usage command line:
|
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
@ahmetalpbalkan Now it looks like this:
|
Hmm do we need to print the full docker-machine.exe path in the screenshot? We can just use args[0] maybe? |
Yes, just had the same idea. I've tried with
Then I put the exe into another directory that is in the PATH and here it works:
It seems that has something to do with the ShimGen.exe of Chocolatey that calls the real docker-machine.exe with absolute path and so Args[0] has the complate path in it. I don't like to add workarounds in docker-machine for this. |
Same thing for powershell. Chocolatey's redirect puts in the absolute path:
|
Ah true. It's the chocolatey shimgen exec'ing with the full path... |
LGTM (not a maintainer). |
I will have to test this out soon and get back to you. |
any updates on this? |
@nathanleclaire what's the status on this? |
@nathanleclaire @dmp42 I can work on it tomorrow |
SGTM @dgageot 👍 |
👍 |
@StefanScherer @nathanleclaire the replacement PR with unit tests is #2058 |
PR #2058 merged, so I close this one. Thanks! |
👍 |
After writing down a proposal in #1033 to improve the cmd.exe shell support of docker-machine I have added it to the sourcecode.
With this change the user has a command how to set the environments in the current shell.
I also have cleaned up the code a little bit to reduce the if-else blocks to a minimum.
Signed-off-by: Stefan Scherer scherer_stefan@icloud.com