cat
/
012
/
clone
ssh
copy
https
copy
a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary
code
commits
branches
reviews
sites
releases
insights
main
all branches
012
/
internal
/
ui
/
nbview
/
testdata
/
nu
/
hover-101.json
history
hover-101.json
1.8K
blame
history
wrap lines
copy
1
{
"hover"
:
"Convert value to a string.\n### Usage\n```\n into string {flags} <...rest>\n```\n\n### Flags\n\n `-h`, `--help` - Display the help message for this command\\\n `-g`, `--group-digits` - Group digits together by the locale specific thousands separator.\\\n `-d`, `--decimals` `<int>` - Decimal digits to which to round.\n\n### Parameters\n\n `...rest: cell-path` - For a data structure input, convert data at the given cell paths.\n\n\n### Input/output types\n\n```\n binary | string\n int | string\n number | string\n string | string\n glob | string\n bool | string\n filesize | string\n datetime | string\n duration | string\n cell-path | string\n range | string\n semver | string\n semver-range | string\n list<any> | list<string>\n table | table\n record | record\n\n```\n### Example(s)\n```\n```\n convert int to string and append three decimal places.\n```\n 5 | into string --decimals 3\n\n```\n convert float to string and round to nearest integer.\n```\n 1.7 | into string --decimals 0\n\n```\n convert float to string.\n```\n 1.7 | into string --decimals 1\n\n```\n convert float to string and limit to 2 decimals.\n```\n 1.734 | into string --decimals 2\n\n```\n convert float to string.\n```\n 4.3 | into string\n\n```\n convert string to string.\n```\n '1234' | into string\n\n```\n convert boolean to string.\n```\n true | into string\n\n```\n convert date to string.\n```\n '2020-10-10 10:00:00 +02:00' | into datetime | into string\n\n```\n convert filepath to string.\n```\n ls Cargo.toml | get name | into string\n\n```\n convert filesize to string.\n```\n 1kB | into string\n\n```\n convert duration to string.\n```\n 9day | into string\n\n```\n convert cell-path to string.\n```\n $.name | into string\n\n```\n convert semver to string.\n```\n '1.2.3' | into semver | into string\n\n"
,
"span"
:
{
"start"
:
101
,
"end"
:
112
}
}