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
3 changes: 2 additions & 1 deletion bash-env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export def main [
[]
}

let raw = ($in | str join "\n") | bash-env-json ...($fn_args ++ $path_args) | complete
let input_str = $in | default "" | str join "\n"
let raw = $input_str | bash-env-json ...($fn_args ++ $path_args) | complete
let raw_json = $raw.stdout | from json

let error = $raw_json | get -i error
Expand Down