| Crates.io | nadi |
| lib.rs | nadi |
| version | 0.7.0 |
| created_at | 2025-06-17 20:08:27.760226+00 |
| updated_at | 2025-06-17 20:08:27.760226+00 |
| description | CLI tool for running nadi task system |
| homepage | |
| repository | https://github.com/Nadi-System/nadi-system |
| max_upload_size | |
| id | 1716229 |
| size | 53,763 |
Documentation: https://nadi-system.github.io/
This can run nadi task files, syntax highlight them for verifying them, generate markdown documentations for the plugins. The documentations included in the nadi book (Function List and each plugin's page like Attributes Plugin attributes) are generated with that. The documentation on each plugin functions comes from their docstrings in the code, please refer to how to write plugins section of the book for details on that.
The REPL is available with nadi --repl option. Refer to Examples for example nadi scripts.
The available options are shown below.
Usage: nadi [OPTIONS] [TASK_FILE]
Arguments:
[TASK_FILE] Tasks file to run; if `--stdin` is also provided this runs before stdin
Options:
-C, --completion <FUNC_TYPE> list all functions and exit for completions [possible values: node, network, env]
-c, --fncode <FUNCTION> print code for a function
-f, --fnhelp <FUNCTION> print help for a function
-g, --generate-doc <DOC_DIR> Generate markdown doc for all plugins and functions
-l, --list-functions list all functions and exit
-n, --network <NETWORK_FILE> network file to load before executing tasks
-p, --print-tasks print tasks before running
-P, --new-plugin <NEW_PLUGIN> Create the files for a new nadi_plugin
-N, --nadi-core <NADI_CORE> Path to the nadi_core library for the new nadi_plugin
-s, --show Show the tasks file, do not do anything
-S, --stdin Use stdin for the tasks; reads the whole stdin before execution
-r, --repl Open the REPL (interactive session) before exiting
-t, --task <TASK_STR> Run given string as task before running the file
-h, --help Print help
-V, --version Print version