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

First gh completions (#706)

Hi!
I could squeze some time to do the first `gh` completions.

On the future I will add the subcommands 👍🏼 

docs on 
https://cli.github.com/manual/
This commit is contained in:
Auca Coyan 2023-12-20 17:56:41 -03:00 committed by GitHub
parent 860a52a55d
commit d88e68531d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,17 @@
# ------------------ nu-complete commands ------------------
def "nu-complete gh" [] {
^gh --help
| lines
| filter {|line| str starts-with " " }
| skip 1
| parse "{value}: {description}"
| str trim
}
# ------------------ export extern commands ------------------
export extern "gh" [
command?: string@"nu-complete gh"
--help # Show help for command
]