Skip to content

Instantly share code, notes, and snippets.

@WassimBenzarti
Last active March 16, 2021 23:35
Show Gist options
  • Save WassimBenzarti/3585425bdf31c88cbbb981c5073ac164 to your computer and use it in GitHub Desktop.
Save WassimBenzarti/3585425bdf31c88cbbb981c5073ac164 to your computer and use it in GitHub Desktop.
Okteto up with VSCode
@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
4F81DB6A961FC199EAC60EAEF831FCF4DF7FE9A14D6E87326EB25ECDCDE67D88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment