mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:16:05 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
51
docs/commands/into-string.md
Normal file
51
docs/commands/into-string.md
Normal file
@ -0,0 +1,51 @@
|
||||
# into string
|
||||
Convert value to string
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> into string ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: column paths to convert to string (for table input)
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -d, --decimals <integer>: decimal digits to which to round
|
||||
|
||||
## Examples
|
||||
convert decimal to string and round to nearest integer
|
||||
```shell
|
||||
> echo 1.7 | into string -d 0
|
||||
```
|
||||
|
||||
convert decimal to string
|
||||
```shell
|
||||
> echo 4.3 | into string
|
||||
```
|
||||
|
||||
convert string to string
|
||||
```shell
|
||||
> echo '1234' | into string
|
||||
```
|
||||
|
||||
convert boolean to string
|
||||
```shell
|
||||
> echo $true | into string
|
||||
```
|
||||
|
||||
convert date to string
|
||||
```shell
|
||||
> date now | into string
|
||||
```
|
||||
|
||||
convert filepath to string
|
||||
```shell
|
||||
> ls Cargo.toml | get name | into string
|
||||
```
|
||||
|
||||
convert filesize to string
|
||||
```shell
|
||||
> ls Cargo.toml | get size | into string
|
||||
```
|
||||
|
Reference in New Issue
Block a user