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:
parent
0985500ec9
commit
bc71f8d1e9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue