vendor: move vendored sources in-tree
This should make it easier to see changes instead of just a blob
This commit is contained in:
14
vendor/github.com/rabbitmq/amqp091-go/gen.ps1
generated
vendored
Normal file
14
vendor/github.com/rabbitmq/amqp091-go/gen.ps1
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
$DebugPreference = 'Continue'
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
Set-PSDebug -Off
|
||||
Set-StrictMode -Version 'Latest' -ErrorAction 'Stop' -Verbose
|
||||
|
||||
New-Variable -Name curdir -Option Constant -Value $PSScriptRoot
|
||||
|
||||
$specDir = Resolve-Path -LiteralPath (Join-Path -Path $curdir -ChildPath 'spec')
|
||||
$amqpSpecXml = Resolve-Path -LiteralPath (Join-Path -Path $specDir -ChildPath 'amqp0-9-1.stripped.extended.xml')
|
||||
$gen = Resolve-Path -LiteralPath (Join-Path -Path $specDir -ChildPath 'gen.go')
|
||||
$spec091 = Resolve-Path -LiteralPath (Join-Path -Path $curdir -ChildPath 'spec091.go')
|
||||
|
||||
Get-Content -LiteralPath $amqpSpecXml | go run $gen | gofmt | Set-Content -Force -Path $spec091
|
||||
Reference in New Issue
Block a user