complete

For system.

Capture the outputs and exit code from an external piped in command in a nushell table.

Command Type

built-in

Signature

> complete {flags}

Input/output types:

input output
any record

Examples

Run the external command to completion, capturing stdout, stderr, and exit_code

> ^external arg1 | complete

Notes

In order to capture stdout, stderr, and exit_code, externally piped in commands need to be wrapped with do

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.