lux-cli 0.53.3

A luxurious package manager for Lua
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use lux_lib::{config::Config, workspace::Workspace};
use miette::Result;

/// Generate a lockfile for the current project without installing its dependencies.
pub async fn generate_lockfile(config: Config) -> Result<()> {
    let workspace = Workspace::current_or_err()?;

    lux_lib::operations::GenerateLockfile::new(&config, &workspace)
        .generate()
        .await?;

    println!("Generated {}", workspace.lockfile_path().display());

    Ok(())
}