Update prompts

This commit is contained in:
vczh
2026-03-19 06:21:35 -07:00
parent bd45188a8e
commit 8297eb5caa
12 changed files with 185 additions and 10 deletions

View File

@@ -1,8 +1,11 @@
param(
[Parameter(Mandatory=$true)]
[string]$Command
[string]$Command = $null
)
if ([string]::IsNullOrEmpty($Command)) {
throw "\$Command parameter is required."
}
. $PSScriptRoot\copilotShared.ps1
$cdbpath = GetCDBPath
$commandLine = "echo .remote_exit | `"$($cdbpath)`" -remote npipe:server=.,pipe=VlppUnitTest -clines 0 -c `"$Command`""

View File

@@ -1,8 +1,11 @@
param(
[Parameter(Mandatory=$true)]
[string]$Executable
[string]$Executable = $null
)
if ([string]::IsNullOrEmpty($Executable)) {
throw "\$Executable parameter is required."
}
. $PSScriptRoot\copilotShared.ps1
# Ensure the executable name has .exe extension

View File

@@ -1,12 +1,17 @@
param(
[Parameter(Mandatory=$true)]
[string]$Mode,
[Parameter(Mandatory=$true)]
[string]$Executable,
[string]$Mode = $null,
[string]$Executable = $null,
[string]$Configuration = $null,
[string]$Platform = $null
)
if ([string]::IsNullOrEmpty($Mode)) {
throw "\$Mode parameter is required."
}
if ([string]::IsNullOrEmpty($Executable)) {
throw "\$Executable parameter is required."
}
if (($Mode -ne "CLI") -and ($Mode -ne "UnitTest")) {
throw "Invalid mode: $Mode. Allowed values are CLI or UnitTest."
}