feat: without remove dir all assertion

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-01-28 16:54:25 +01:00
parent 85cc1d46db
commit ede55b975b
3 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
use anyhow::Context;
use clap::{ArgMatches, Command};
use crate::cli::CuddleCli;
@@ -21,7 +22,9 @@ impl RenderCommand {
KustomizeCommand::from_matches(sub_matches, cli)?.execute()?;
}
Some(("folder", sub_matches)) => {
FolderCommand::from_matches(sub_matches, cli)?.execute()?;
FolderCommand::from_matches(sub_matches, cli)?
.execute()
.context("failed to render folder")?;
}
_ => anyhow::bail!("failed to find match for render"),
}