Home Explore Blog CI



nushell

commands/docs/complete.md
465b0f5c3d30544e806624f88935583504a4559f7f1a065f00000003000003cc
---
title: complete
categories: |
  system
version: 0.104.0
system: |
  Capture the outputs and exit code from an external piped in command in a nushell table.
usage: |
  Capture the outputs and exit code from an external piped in command in a nushell table.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `complete` for [system](/commands/categories/system.md)

<div class='command-title'>Capture the outputs and exit code from an external piped in command in a nushell table.</div>

## Signature

```> complete {flags} ```


## Input/output types:

| input | output |
| ----- | ------ |
| any   | record |
## Examples

Run the external command to completion, capturing stdout, stderr, and exit_code
```nu
> ^external arg1 | complete

```

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

Chunks
538002ea (1st chunk of `commands/docs/complete.md`)
Title: complete Command in Nushell
Summary
The `complete` command in Nushell is designed to capture the outputs (stdout, stderr) and exit code from an external command that is piped into it. It returns a Nushell table containing this information, allowing for a more structured way to handle the results of external commands within Nushell scripts. It is noted that externally piped in commands need to be wrapped with `do`.