Last active
March 16, 2021 23:35
-
-
Save WassimBenzarti/3585425bdf31c88cbbb981c5073ac164 to your computer and use it in GitHub Desktop.
Okteto up with VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if not exist okteto.yml (echo No okteto.yml file in this directory. Try to okteto init first. && exit /b) | |
for /f "tokens=* delims=" %%a in (okteto.yml) do ( | |
set "firstline=%%~a" | |
goto continue | |
) | |
:continue | |
for /f "tokens=2 delims= " %%a in ("%firstline%") do set "app=%%a" | |
echo Start VSCode with this URL: vscode://vscode-remote/ssh-remote+%app%.okteto/app (Copied) | |
echo | set /p=vscode://vscode-remote/ssh-remote+%app%.okteto/app|clip | |
okteto up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4F81DB6A961FC199EAC60EAEF831FCF4DF7FE9A14D6E87326EB25ECDCDE67D88 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment