Skip to content

Commit 270c3af

Browse files
Internal command - Invoke-Aider - removed bools
1 parent 7500fad commit 270c3af

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.aider/aider.psm1

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ function Invoke-Aider {
283283
.PARAMETER EditorModel
284284
Specify the model to use for editing code.
285285
286-
.PARAMETER Pretty
287-
Enable/disable pretty, colorized output. Defaults to $true.
286+
.PARAMETER NoPretty
287+
Disable pretty, colorized output.
288288
289-
.PARAMETER Stream
290-
Enable/disable streaming responses. Defaults to $true.
289+
.PARAMETER NoStream
290+
Disable streaming responses.
291291
292292
.PARAMETER YesAlways
293293
Automatically confirm all prompts.
@@ -301,11 +301,11 @@ function Invoke-Aider {
301301
.PARAMETER MapRefresh
302302
Control how often the repo map is refreshed (auto/always/files/manual).
303303
304-
.PARAMETER AutoLint
305-
Enable/disable automatic linting after changes.
304+
.PARAMETER NoAutoLint
305+
Disable automatic linting after changes.
306306
307307
.PARAMETER AutoTest
308-
Enable/disable automatic testing after changes.
308+
Enable automatic testing after changes.
309309
310310
.PARAMETER ShowPrompts
311311
Show system prompts.
@@ -347,21 +347,19 @@ function Invoke-Aider {
347347
param (
348348
[Parameter(Mandatory)]
349349
[string]$Message,
350-
351350
[Parameter(Mandatory)]
352351
[string[]]$File,
353-
354352
[string]$Model,
355353
[string]$EditorModel,
356-
[bool]$Pretty = $true,
357-
[bool]$Stream = $true,
354+
[switch]$NoPretty,
355+
[switch]$NoStream,
358356
[switch]$YesAlways,
359357
[switch]$CachePrompts,
360358
[int]$MapTokens = 0,
361359
[ValidateSet('auto', 'always', 'files', 'manual')]
362360
[string]$MapRefresh = 'manual',
363-
[bool]$AutoLint = $true,
364-
[bool]$AutoTest = $false,
361+
[switch]$NoAutoLint,
362+
[switch]$AutoTest,
365363
[switch]$ShowPrompts,
366364
[switch]$VerboseOutput,
367365
[string]$EditFormat = 'whole',
@@ -390,11 +388,11 @@ function Invoke-Aider {
390388
$params += $EditorModel
391389
}
392390

393-
if (-not $Pretty) {
391+
if ($NoPretty) {
394392
$params += "--no-pretty"
395393
}
396394

397-
if (-not $Stream) {
395+
if ($NoStream) {
398396
$params += "--no-stream"
399397
}
400398

@@ -419,7 +417,7 @@ function Invoke-Aider {
419417
$params += $MapRefresh
420418
}
421419

422-
if (-not $AutoLint) {
420+
if ($NoAutoLint) {
423421
$params += "--no-auto-lint"
424422
}
425423

0 commit comments

Comments
 (0)