chore: initial sanitized public snapshot
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
param(
|
||||
[string]$UpstreamBinary = "",
|
||||
[string]$RustBinary = "",
|
||||
[string]$OutputRoot = ""
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
$repoRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
||||
$xtaskManifest = Join-Path $repoRoot "xtask\Cargo.toml"
|
||||
|
||||
$arguments = @(
|
||||
"cargo",
|
||||
"run",
|
||||
"--manifest-path",
|
||||
$xtaskManifest,
|
||||
"--",
|
||||
"compat",
|
||||
"capture-cli-goldens"
|
||||
)
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace($UpstreamBinary)) {
|
||||
$arguments += @("--upstream-binary", $UpstreamBinary)
|
||||
}
|
||||
if (-not [string]::IsNullOrWhiteSpace($RustBinary)) {
|
||||
$arguments += @("--rust-binary", $RustBinary)
|
||||
}
|
||||
if (-not [string]::IsNullOrWhiteSpace($OutputRoot)) {
|
||||
$arguments += @("--output-root", $OutputRoot)
|
||||
}
|
||||
|
||||
rtk @arguments
|
||||
Reference in New Issue
Block a user