1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

Move completions to module format (#195)

* Move custom completions to module format

* Describe usage in README of custom completions
This commit is contained in:
Hofer-Julian 2022-03-31 13:30:07 +02:00 committed by GitHub
parent f394c2819e
commit ef5de3ed96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 54 additions and 29 deletions

View file

@ -23,7 +23,7 @@ def "nu-complete cargo features" [] {
open Cargo.toml | get features | transpose | get column0
}
extern "cargo run" [
export extern "cargo run" [
...args: any # arguments
--bin: string@"nu-complete cargo bins" # Name of the bin target to run
--example: string@"nu-complete cargo examples" # Name of the example target to run