1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Merge pull request #72 from fdncred/cmd_stats

add command stats script
This commit is contained in:
Darren Schroeder 2021-07-03 19:26:24 -05:00 committed by GitHub
commit ef65e0ea55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
cmd_stats.nu Normal file
View file

@ -0,0 +1,20 @@
let filter = ($nu.lang | where is_filter == $true | length)
let builtin = ($nu.lang | where is_builtin == $true | length)
let subcmd = ($nu.lang | where is_sub == $true | length)
let plugin = ($nu.lang | where is_plugin == $true | length)
let custom = ($nu.lang | where is_custom == $true | length)
let private = ($nu.lang | where is_private == $true | length)
let binary = ($nu.lang | where is_binary == $true | length)
let total = ($nu.lang | length)
[
[command_type count];
[filter $filter]
[builtin $builtin]
[sub_command $subcmd]
[plugin $plugin]
[custom $custom]
[private $private]
[binary $binary]
[total_cmds $total]
]