Skip to content

Commit

Permalink
fix plugin register
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 29, 2024
1 parent ff5eb97 commit 555925f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion nu/register-plugins.nu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def main [
let useRegister = if $is_legacy { true } else { false }
let nuDir = (which nu | get 0.path | path dirname)
print $'enablePlugins: ($enablePlugins) of Nu version: ($version)'
print ($enablePlugins | describe)

print 'Output of (which nu):'
print (which nu)
Expand All @@ -34,6 +33,8 @@ def main [
$allPlugins | filter {|it| $enablePlugins =~ ($it.name | path basename | split row . | first)}
}

print $filteredPlugins

$filteredPlugins | each {|plugin|
let p = $plugin.name | str replace -a \ /
if $useRegister {
Expand Down
3 changes: 2 additions & 1 deletion src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def main [
let useRegister = if $is_legacy { true } else { false }
let nuDir = (which nu | get 0.path | path dirname)
print $'enablePlugins: ($enablePlugins) of Nu version: ($version)'
print ($enablePlugins | describe)
print 'Output of (which nu):'
print (which nu)
Expand All @@ -41,6 +40,8 @@ def main [
$allPlugins | filter {|it| $enablePlugins =~ ($it.name | path basename | split row . | first)}
}
print $filteredPlugins
$filteredPlugins | each {|plugin|
let p = $plugin.name | str replace -a \ /
if $useRegister {
Expand Down

0 comments on commit 555925f

Please sign in to comment.