mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 03:17:58 +02:00
Strip trailing whitespace in files (#4575)
* Strip trailing whitespace in rs files * Strip trailing whitespace in toml files * Strip trailing whitespace in md files * Strip trailing whitespace in nu files
This commit is contained in:
@ -10,7 +10,7 @@ version: ($vers)
|
||||
($command.usage)
|
||||
|
||||
"
|
||||
let sig = ($command.signature | each { |param|
|
||||
let sig = ($command.signature | each { |param|
|
||||
if $param.parameter_type == "positional" {
|
||||
$"('(')($param.parameter_name)(')')"
|
||||
} else if $param.parameter_type == "switch" {
|
||||
@ -56,7 +56,7 @@ $"($example.description)
|
||||
|
||||
$example_top + $examples
|
||||
} else { "" }
|
||||
|
||||
|
||||
let doc = ($top + $signature + $parameters + $examples)
|
||||
|
||||
let safe_name = ($command.command | str find-replace '\?' '' | str find-replace ' ' '_')
|
||||
|
Reference in New Issue
Block a user