Skip to content

Commit

Permalink
Update scoop completions
Browse files Browse the repository at this point in the history
  • Loading branch information
koffydrop committed Aug 14, 2024
1 parent 1b5584a commit b8b2a83
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions custom-completions/scoop/scoop-completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,25 @@ def scoopShimBuilds [] {
}

def scoopCommands [] {
scoop help | lines --skip-empty | skip 5 | parse '{value} {description}' | str trim
^powershell -nop -nol -c "(scoop help | ConvertTo-Json -Compress)"
| decode
| lines
| last
| to text
| from json
| rename value description
}

def scoopAliases [] {
scoop alias list | lines --skip-empty | skip 2 | parse '{name} {path}' | get name
^powershell -nop -nol -c "(scoop alias list|ConvertTo-Json -Compress)"
| decode
| str trim
| lines
| last
| to text
| '[' + $in + ']'
| from json
| get Name
}

def batStyles [] {
Expand Down

0 comments on commit b8b2a83

Please sign in to comment.