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 a7880cb commit 4bc4847
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

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

4 changes: 2 additions & 2 deletions nu/register-plugins.nu
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def main [
# print (ls $nu.default-config-dir)

let allPlugins = ls $nuDir | where name =~ nu_plugin
print $'All plugins found in Nu directory: ($allPlugins)'
print $'All plugins found in Nu directory:'
print $allPlugins
let filteredPlugins = if $enablePlugins == 'true' { $allPlugins } else {
let filteredPlugins = if $'($enablePlugins)' == 'true' { $allPlugins } else {
$allPlugins | filter {|it| $enablePlugins =~ ($it.name | path basename | split row . | first)}
}

Expand Down
4 changes: 2 additions & 2 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def main [
# print (ls $nu.default-config-dir)
let allPlugins = ls $nuDir | where name =~ nu_plugin
print $'All plugins found in Nu directory: ($allPlugins)'
print $'All plugins found in Nu directory:'
print $allPlugins
let filteredPlugins = if $enablePlugins == 'true' { $allPlugins } else {
let filteredPlugins = if $'($enablePlugins)' == 'true' { $allPlugins } else {
$allPlugins | filter {|it| $enablePlugins =~ ($it.name | path basename | split row . | first)}
}
Expand Down

0 comments on commit 4bc4847

Please sign in to comment.