Files
public/Proto/RpcServer/gen_proto.ps1

12 lines
280 B
PowerShell

$gen = "gen"
if (!(Test-Path $gen)) { mkdir $gen | Out-Null }
$files = Get-ChildItem sources/*.proto | ForEach-Object { $_.Name }
protoc `
--proto_path=sources `
--go_out=$gen `
--go-grpc_out=$gen `
--grpc-gateway_out=$gen `
--openapiv2_out=$gen `
$files