From f11f4a854558b8431fdc4479032c04fe11242eb7 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 3 Jul 2021 19:24:28 -0500 Subject: [PATCH] add command stats script --- cmd_stats.nu | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cmd_stats.nu diff --git a/cmd_stats.nu b/cmd_stats.nu new file mode 100644 index 0000000..4d2fdda --- /dev/null +++ b/cmd_stats.nu @@ -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] +] \ No newline at end of file