mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 13:55:28 +03:00
Fixes scope commands
call and columns (#908)
Hi! Just to more fixes in the queue 😄
This commit is contained in:
parent
ba46538785
commit
d64004f710
@ -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]
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user