···1818### Hidden Functions ###
19192020You can hide functions from being listed in the help menu by prefixing them with an underscore (`_`). They will still be
2121-executable when ran directly. This feature may be useful for debug or one-time migration functions.
2121+executable when ran directly, and can be shown with the `--list-all` flag. This feature may be useful for debug or
2222+one-time migration functions.
+7-2
template.nu
···1313 # TODO: --choose (-c) # Interactively choose a function
1414 --help (-h)
1515 --list (-l) # List available commands
1616+ --list-all # List all available commands, including hidden ones
1617 --interactive (-i) # Enter interactive shell with the module loaded
1718 ...cmd
1819] {
1920 if $interactive {
2021 exec nu -e $"use ($module_path); print '(ansi yellow)Module loaded.(ansi reset)'"
2222+ } else if $list_all {
2323+ print-functions --all
2124 } else if $help or $list or ($cmd | length) == 0 {
2225 print-functions
2326 } else {
···3942 | get 0.commands.name
4043}
41444242-def print-functions [] {
4545+def print-functions [
4646+ --all (-a) # show hidden functions
4747+] {
4348 get-functions
4444- | where not ($it starts-with "_")
4949+ | if $all {$in} else {$in | where $it not-starts-with "_"}
4550 | each {|function|
4651 let usage = if $print_usage {
4752 let help = help $module_name $function | lines