Skip to main content

lux_cli/
download.rs

1use clap::Args;
2use lux_lib::{config::Config, operations, package::PackageReq};
3
4use miette::Result;
5
6#[derive(Args)]
7pub struct Download {
8    package_req: PackageReq,
9}
10
11pub async fn download(dl_data: Download, config: Config) -> Result<()> {
12    let _rock = operations::Download::new(&dl_data.package_req, &config)
13        .download_src_rock_to_file(None)
14        .await?;
15    Ok(())
16}