Files
waozi 4624de9442 Start projects from templates and run them with plain ziran commands
`ziran new DIR` writes a project from a template and locks it; `ziran init`
applies one to the current project. Ziran ships `cli` and `lib`, and any
package can list more under `[templates]`, so `ziran new hello --template
kryonlabs/kryon:tui` starts from a Kryon template. `{{name}}` and
`{{module}}` are substituted in contents and paths. `init` never overwrites a
file and merges the template's manifest: missing tables and keys are added,
string arrays grow, and the project's own values are kept and reported.

Inside a project, `ziran run`, `build`, `check`, and `install` without a file
now work on the project's program. Without a tool, `build` compiles the
entry's main into build/NAME through zi2c --exe (honoring `[package] links`),
`run` builds and runs it with the arguments after `--`, and `install` copies
it to PREFIX/bin in one step. `[package] tool = "Kryon"` hands the four
commands to that dependency's project tool, replacing `[install] tool`, which
is now rejected with a message naming the new key.
2026-09-30 14:07:23 -03:00
..