mirror of
https://github.com/nushell/nushell.git
synced 2026-12-02 18:24:08 +08:00
16 lines
518 B
Nu
16 lines
518 B
Nu
export use toolkit *
|
|
|
|
@search-terms toolkit
|
|
@example "List all toolkit subcommands" { toolkit }
|
|
export def main [] {
|
|
let cmds = (scope commands | where name =~ '^toolkit ' and name != 'toolkit toolkit' | sort-by name | select name description | each {|r| {name: ($r.name | str replace --regex '^toolkit ' ''), description: $r.description}})
|
|
if ($cmds | is-empty) {
|
|
return
|
|
}
|
|
print $"Nushell Development Toolkit"
|
|
print ""
|
|
print "Usage: toolkit <command>"
|
|
print ""
|
|
$cmds | table
|
|
}
|