Skip to content
Snippets Groups Projects
Commit 4b53a261 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

remove `check-nushell-files` (!204)

this removes the `check-nushell-files.nu` script i left in !200.
parent 4962757c
No related branches found
No related tags found
1 merge request!204remove `check-nushell-files`
Pipeline #8298 passed
let files = ^git lf | lines | where { ($in | path parse).extension == "nu" }
for f in $files {
let path = $env.FILE_PWD | path dirname | path join $f
try {
nu-check $path --debug
} catch { |e|
let err = $e.debug
| ansi strip
| parse --regex '(.*)msg: "Found : (?<msg>.*)", span: (?<span>.*)'
| into record
error make --unspanned {
msg: ([
$"(ansi red_bold)($e.msg)(ansi reset):",
$" file: (ansi purple)($f)(ansi reset)",
$" err: ($err.msg)",
] | str join "\n")
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment