mirror of https://github.com/k3d-io/k3d
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.
28 lines
389 B
28 lines
389 B
3 years ago
|
@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
|
||
|
)
|