mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-09-14 20:07:24 +00:00
Refactor Autopilot Mode to Use Global Variable
This commit is contained in:
parent
efc6bad638
commit
051b501fa7
@ -252,17 +252,15 @@ function Disable-AutopilotMode {
|
||||
param([object]$Config)
|
||||
|
||||
try {
|
||||
$Config.Autopilot.Enabled = $false
|
||||
$script:AutopilotEnabled = $false
|
||||
Write-Host "🤖 Autopilot mode disabled" -ForegroundColor Yellow
|
||||
return $true
|
||||
}
|
||||
catch {
|
||||
Write-Error "Failed to disable autopilot mode: $_"
|
||||
return $false
|
||||
}
|
||||
}
|
||||
|
||||
# Main command processing
|
||||
# Command processing function
|
||||
function Process-Command {
|
||||
param(
|
||||
[string]$Command,
|
||||
|
Loading…
Reference in New Issue
Block a user