Skip to content

Commit

Permalink
Update aider.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Nov 1, 2024
1 parent c87c0df commit ea47931
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .aider/aider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ function Repair-SmallThing {
[switch]$CachePrompts,
[int]$MapTokens,
[string]$MapRefresh,
[int]$MaxFileSize = 7.5kb,
[switch]$NoAutoLint,
[switch]$AutoTest,
[switch]$ShowPrompts,
Expand Down Expand Up @@ -436,7 +437,7 @@ function Repair-SmallThing {
}

# if file is larger than MaxFileSize, skip
if ((Get-Item $filename).Length -gt 7.5kb) {
if ((Get-Item $filename).Length -gt $MaxFileSize) {
Write-Warning "Skipping $cmdName because it's too large"
continue
}
Expand Down Expand Up @@ -466,7 +467,8 @@ function Repair-SmallThing {
'First',
'Skip',
'PromptFilePath',
'Type'
'Type',
'MaxFileSize'
)

$PSBoundParameters.GetEnumerator() |
Expand Down

0 comments on commit ea47931

Please sign in to comment.