Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ export def "check pr" [
{ test }
] | par-each { |task| $files | do $task } # TODO: buffer output
}

test-stdlib-candidate
}

export def test-stdlib-candidate [] {
use stdlib-candidate/testing.nu
testing run-tests --allow-no-tests --path stdlib-candidate
}

# View subcommands.
Expand Down Expand Up @@ -78,14 +71,13 @@ export def "lint ide-check" []: path -> int {
let file = $in
let stub = $env.STUB_IDE_CHECK? | default false | into bool
const current_path = (path self)
let candidate_path = $current_path | path dirname | path join "stdlib-candidate"
let diagnostics = if $stub {
do { nu -I $candidate_path --no-config-file --commands $"use '($file)'" }
do { nu --no-config-file --commands $"use '($file)'" }
| complete
| [[severity message]; [$in.exit_code $in.stderr]]
| where severity != 0
} else {
nu -I $candidate_path --ide-check 10 $file
nu --ide-check 10 $file
| $"[($in)]"
| from nuon
| where type == diagnostic
Expand Down