1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 23:27:45 +00:00

Fixes scope commands call and columns (#908)

Hi! Just to more fixes in the queue 😄
This commit is contained in:
Auca Coyan 2024-07-21 09:40:22 -03:00 committed by GitHub
parent ba46538785
commit d64004f710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,18 +1,18 @@
let builtin = (scope commands | where is_builtin == true | length) export def main [] {
let subcmd = (scope commands | where is_sub == true | length) let builtin = (scope commands | where type == "built-in" | length)
let plugin = (scope commands | where is_plugin == true | length) let external = (scope commands | where type == "external" | length)
let custom = (scope commands | where is_custom == true | length) let custom = (scope commands | where type == "custom" | length)
let keyword = (scope commands | where is_keyword == true | length) let keyword = (scope commands | where type == "keyword" | length)
let extern = (scope commands | where is_extern == true | length) let plugin = (scope commands | where type == "plugin" | length)
let total = (scope commands | length) let total = (scope commands | length)
[ [
[command_type count]; [command_type count];
[builtin $builtin] [builtin $builtin]
[sub_command $subcmd] [external $external]
[plugin $plugin] [custom $custom]
[custom $custom] [keyword $keyword]
[keyword $keyword] [plugin $plugin]
[extern $extern] [total_cmds $total]
[total_cmds $total] ]
] }