Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored Aug 5, 2024
1 parent 7a5a14f commit 1c58d0d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,14 @@ Register-ArgumentCompleter -CommandName Start-KurukuruSleep -ParameterName Patte
$commandAst,
$fakeBoundParameter
)
$Names = $KurukuruPatterns.Name
if ($wordToComplete.Length -eq 0) { return $Names }
foreach ($item in $Names) {
if ($item.ToLower().StartsWith($wordToComplete.ToLower())) {
foreach ($p in ($KurukuruPatterns)) {
if ($p.Name.ToLower().StartsWith($wordToComplete.ToLower())) {
[System.Management.Automation.CompletionResult]::new(
$item,
$item,
$p.Name,
$p.Name,
[System.Management.Automation.CompletionResultType]::ParameterValue,
$item)
"$($p.Frames) Interval=$($p.Interval)"
)
}
}
}
Expand Down

0 comments on commit 1c58d0d

Please sign in to comment.