tyt-material 0.1.6

Command-line tools for working with materials.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::commands;
use clap::Subcommand;

/// Operations on material textures.
#[derive(Clone, Debug, Subcommand)]
#[command(subcommand_value_name = "command")]
pub enum TytMaterial {
    #[command(name = "create-mse")]
    CreateMse(commands::CreateMse),
}

impl TytMaterial {
    pub fn execute(self, dependencies: impl crate::Dependencies) -> crate::Result<()> {
        match self {
            TytMaterial::CreateMse(create_mse) => create_mse.execute(dependencies),
        }
    }
}