Skip to main content

Module init

Module init 

Source
Expand description

mars init [TARGET] [--link DIR...] — scaffold a mars project.

Creates <project-root>/mars.toml and <project-root>/.mars. If TARGET is provided, also creates <project-root>/TARGET as a managed output dir. Use --root to select an explicit project root.

Init does NOT walk up — it creates a project at cwd or the --root target. Idempotent: re-running is a no-op for initialization but still processes --link flags.

Structs§

InitArgs
Arguments for mars init.

Functions§

run
Run mars init.