Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
k3d/vendor/github.com/goodhosts/hostsfile/make.bat

27 lines
389 B

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set LF=^
echo %1%
if "%1%"=="" (
set cmd=ci
) else (
set cmd=%1%
)
if "%cmd%" == "ci" (
for /F %%i in ('goimports -l .') do (
set "line=%%i"
set goimports=%goimports%!line!!LF!
)
if not "!goimports!" == "" (
goimports -d .
goto :eof
)
golangci-lint run || goto :eof
go test -v . || goto :eof
goto :eof
)