Skip to content

Commit

Permalink
Internal command - Invoke-Aider - removed bools
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 24, 2024
1 parent 7500fad commit 270c3af
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .aider/aider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ function Invoke-Aider {
.PARAMETER EditorModel
Specify the model to use for editing code.
.PARAMETER Pretty
Enable/disable pretty, colorized output. Defaults to $true.
.PARAMETER NoPretty
Disable pretty, colorized output.
.PARAMETER Stream
Enable/disable streaming responses. Defaults to $true.
.PARAMETER NoStream
Disable streaming responses.
.PARAMETER YesAlways
Automatically confirm all prompts.
Expand All @@ -301,11 +301,11 @@ function Invoke-Aider {
.PARAMETER MapRefresh
Control how often the repo map is refreshed (auto/always/files/manual).
.PARAMETER AutoLint
Enable/disable automatic linting after changes.
.PARAMETER NoAutoLint
Disable automatic linting after changes.
.PARAMETER AutoTest
Enable/disable automatic testing after changes.
Enable automatic testing after changes.
.PARAMETER ShowPrompts
Show system prompts.
Expand Down Expand Up @@ -347,21 +347,19 @@ function Invoke-Aider {
param (
[Parameter(Mandatory)]
[string]$Message,

[Parameter(Mandatory)]
[string[]]$File,

[string]$Model,
[string]$EditorModel,
[bool]$Pretty = $true,
[bool]$Stream = $true,
[switch]$NoPretty,
[switch]$NoStream,
[switch]$YesAlways,
[switch]$CachePrompts,
[int]$MapTokens = 0,
[ValidateSet('auto', 'always', 'files', 'manual')]
[string]$MapRefresh = 'manual',
[bool]$AutoLint = $true,
[bool]$AutoTest = $false,
[switch]$NoAutoLint,
[switch]$AutoTest,
[switch]$ShowPrompts,
[switch]$VerboseOutput,
[string]$EditFormat = 'whole',
Expand Down Expand Up @@ -390,11 +388,11 @@ function Invoke-Aider {
$params += $EditorModel
}

if (-not $Pretty) {
if ($NoPretty) {
$params += "--no-pretty"
}

if (-not $Stream) {
if ($NoStream) {
$params += "--no-stream"
}

Expand All @@ -419,7 +417,7 @@ function Invoke-Aider {
$params += $MapRefresh
}

if (-not $AutoLint) {
if ($NoAutoLint) {
$params += "--no-auto-lint"
}

Expand Down

0 comments on commit 270c3af

Please sign in to comment.