1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

in commands table rename usage to description (#990)

`usage` column under the `scope commands` table has been renamed to
description since nushell version 0.98.0
This commit is contained in:
ff2400t 2024-12-08 18:57:33 +05:30 committed by GitHub
parent 09c4ca4ac0
commit b5385a2af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View file

@ -17,7 +17,7 @@ export def fuzzy-command-search [] {
let max_indent = ($max_len / $tablen | into int)
let command = ((help commands | each {|it|
let name = ($it.name | str trim | ansi strip)
$"($name)(pad-tabs $name $max_indent)($it.usage)"
$"($name)(pad-tabs $name $max_indent)($it.description)"
}) | str join (char nl) | fzf | split column (char tab) | get column1.0)
if ($command | is-not-empty) {
help $command