Skip to content

Commit

Permalink
adapt to new cli impl
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosprint committed Aug 14, 2023
1 parent c8b0153 commit c97d408
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/cli/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct ImportOptions {
pub collider_from_model: bool,
}

pub async fn handle(command: &AssetCommand) -> anyhow::Result<()> {
pub async fn handle(command: &AssetCommand, assets: &crate::AssetCache) -> anyhow::Result<()> {
match command {
AssetCommand::MigratePipelinesToml(opt) => {
let path = ProjectPath::new_local(opt.path.clone())?;
Expand All @@ -59,6 +59,12 @@ pub async fn handle(command: &AssetCommand) -> anyhow::Result<()> {
} else {
anyhow::bail!("Unsupported file type");
}
ambient_build::build_assets(
&assets,
&PathBuf::from("assets"),
&PathBuf::from("build"),
)
.await?;
}
None => anyhow::bail!("Unknown file type"),
},
Expand Down

0 comments on commit c97d408

Please sign in to comment.