lux-cli 0.39.0

A luxurious package manager for Lua
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Args;
use lux_lib::{config::Config, operations, package::PackageReq};

use miette::Result;

#[derive(Args)]
pub struct Download {
    package_req: PackageReq,
}

pub async fn download(dl_data: Download, config: Config) -> Result<()> {
    let _rock = operations::Download::new(&dl_data.package_req, &config)
        .download_src_rock_to_file(None)
        .await?;
    Ok(())
}