diff --git a/sourced/misc/cmd_stats.nu b/sourced/misc/cmd_stats.nu index deecb4366..b356d2919 100644 --- a/sourced/misc/cmd_stats.nu +++ b/sourced/misc/cmd_stats.nu @@ -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] + ] +}