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

Make commands optional (#398)

This commit is contained in:
chtenb 2023-03-05 21:45:19 +01:00 committed by GitHub
parent 0985500ec9
commit bc71f8d1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
export extern "npm" [
command: string@"nu-complete npm"
command?: string@"nu-complete npm"
]
def "nu-complete npm" [] {
^npm -l
@ -18,10 +18,10 @@ def "nu-complete npm run" [] {
}
export extern "npm run" [
command: string@"nu-complete npm run"
command?: string@"nu-complete npm run"
--workspace(-w)
--include-workspace-root
--if-present
--ignore-scripts
--script-shell
]
]