Skip to main content

init

Function init 

Source
pub fn init(path: &Path) -> Result<(), Error>
Expand description

Initializes a new Zoi registry at the given path.

This creates the necessary directory structure, repo.yaml, packages.json, and advisories.json, and sets up LSP support.

ยงErrors

Returns an error if:

  • The registry directory or its subdirectories cannot be created.
  • LSP workspace setup fails.
  • Any of the initial configuration files cannot be written.