pub fn run(packages: &[String], global: bool) -> Result<()>Expand description
Runs the ‘use’ command.
Adds the specified packages to either the global or project configuration and triggers an installation.
§Errors
Returns an error if:
- A package name cannot be parsed.
- Configuration update fails.
- The installation process fails.
- In project mode, ‘zoi.lua’ is missing.