mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-24 00:13:48 +08:00
Update prompts
This commit is contained in:
7
.github/Scripts/copilotDebug_RunCommand.ps1
vendored
7
.github/Scripts/copilotDebug_RunCommand.ps1
vendored
@@ -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`""
|
||||
|
||||
7
.github/Scripts/copilotDebug_Start.ps1
vendored
7
.github/Scripts/copilotDebug_Start.ps1
vendored
@@ -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
|
||||
|
||||
13
.github/Scripts/copilotExecute.ps1
vendored
13
.github/Scripts/copilotExecute.ps1
vendored
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user