Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes scope commands call and columns #908

Merged
merged 11 commits into from
Jul 21, 2024
34 changes: 17 additions & 17 deletions sourced/misc/cmd_stats.nu
Original file line number Diff line number Diff line change
@@ -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]
]
}