pub fn run(yes: bool, force: bool) -> Result<()>Expand description
Runs the init command, writing a new zoi.lua in the current directory.
Refuses to overwrite an existing zoi.lua. Every decision is confirmed
first when a terminal is attached, since this writes a file the user may not
have wanted in that particular directory.
ยงErrors
Returns an error if a zoi.lua already exists, if the project name cannot
be determined or is declined at the prompt, or if the file cannot be
written.