This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/nushell/completions/pm.nu
T
2026-07-26 11:55:16 +02:00

11 lines
324 B
Nu

def "nu-complete pm" [spans: list<string>] {
let args = ($spans | skip 1)
let index = (($args | length) - 1)
^pm completion query --json --index $index -- ...$args
| from json
| each {|it| {value: $it.value description: ($it | get -o description | default "")}}
}
@complete 'nu-complete pm'
export extern "pm" []