forked from extern/nushell
f3626f7c3a
* Update docs for open and decode command, regenerate all docs * Update open.rs * Update open.md Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
29 lines
467 B
Markdown
29 lines
467 B
Markdown
---
|
|
title: default
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Sets a default row's column if missing.
|
|
|
|
## Signature
|
|
|
|
```> default (default value) (column name)```
|
|
|
|
## Parameters
|
|
|
|
- `default value`: the value to use as a default
|
|
- `column name`: the name of the column
|
|
|
|
## Examples
|
|
|
|
Give a default 'target' column to all file entries
|
|
```shell
|
|
> ls -la | default 'nothing' target
|
|
```
|
|
|
|
Default the `$nothing` value in a list
|
|
```shell
|
|
> [1, 2, $nothing, 4] | default 3
|
|
```
|