Easily turn Nushell modules into cross-shell CLI tools
library nu nushell
Nushell 100.0%
15 1 0

Clone this repository

https://tangled.org/matrixfurry.com/modcli https://tangled.org/did:plc:zmjoeu3stwcn44647rhxa44o/modcli
git@tangled.org:matrixfurry.com/modcli git@tangled.org:did:plc:zmjoeu3stwcn44647rhxa44o/modcli

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

ModCLI#

ModCLI allows you to easily turn Nushell modules into cross-shell CLI tools. This makes it much easier to write complex CLI tools with many subcommands using Nushell.

Usage#

Load this module, then call modcli install <module-source> [install-prefix] to install your module as a CLI tool. If you're developing a CLI tool, I recommend adding this to your installation script.

See modcli install --help for more options.

Use modcli uninstall <name> [prefix] to uninstall the tool.

Hidden Functions#

You can hide functions from being listed in the help menu by prefixing them with an underscore (_). They will still be executable when ran directly, and can be shown with the --list-all flag. This feature may be useful for debug or one-time migration functions.