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)
let subcmd = (scope commands | where is_sub == true | length)
let plugin = (scope commands | where is_plugin == true | length)
let custom = (scope commands | where is_custom == true | length)
let keyword = (scope commands | where is_keyword == true | length)
let extern = (scope commands | where is_extern == true | length)
let total = (scope commands | length)
export def main [] {
let builtin = (scope commands | where type == "built-in" | length)
let external = (scope commands | where type == "external" | length)
let custom = (scope commands | where type == "custom" | length)
let keyword = (scope commands | where type == "keyword" | length)
let plugin = (scope commands | where type == "plugin" | length)
let total = (scope commands | length)
[
[command_type count];
[builtin $builtin]
[sub_command $subcmd]
[plugin $plugin]
[custom $custom]
[keyword $keyword]
[extern $extern]
[total_cmds $total]
]
[
[command_type count];
[builtin $builtin]
[external $external]
[custom $custom]
[keyword $keyword]
[plugin $plugin]
[total_cmds $total]
]
}