tyt_material/tyt_material.rs
1use crate::commands;
2use clap::Subcommand;
3
4/// Operations on material textures.
5#[derive(Clone, Debug, Subcommand)]
6#[command(subcommand_value_name = "command")]
7pub enum TytMaterial {
8 #[command(name = "create-mse")]
9 CreateMse(commands::CreateMse),
10}
11
12impl TytMaterial {
13 pub fn execute(self, dependencies: impl crate::Dependencies) -> crate::Result<()> {
14 match self {
15 TytMaterial::CreateMse(create_mse) => create_mse.execute(dependencies),
16 }
17 }
18}