We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f611ed commit 2d7b505Copy full SHA for 2d7b505
make_docs.nu
@@ -14,12 +14,17 @@ def plugin-paths [ nu_path?: path ] {
14
_ => ($nu_path | path dirname)
15
}
16
17
- $PLUGINS | each {|plugin|
+ let plugin_paths = $PLUGINS | each {|plugin|
18
match (sys host | get name) {
19
'Windows' => $'($nu_dir | path join $plugin).exe'
20
_ => $'($nu_dir | path join $plugin)'
21
22
23
+
24
+ let decorated = $plugin_paths | wrap path | insert exists {|x| $x.path | path exists }
25
+ $decorated | where not exists | each {|x| print $"(ansi red)No plugin under path '($x.path)', will be skipped...(ansi reset)" }
26
27
+ $decorated | where exists | get path
28
29
30
# get all command names from a clean scope
0 commit comments