vectorizer/commands/
raster.rs

1//!
2//! Collection of Embroidery API commands.
3//!
4
5mod private
6{
7  use clap::Subcommand;
8
9  /// Raster API commands.
10  #[ derive ( Debug, Subcommand ) ]
11  pub enum Command
12  {
13    /// Vectorize command
14    #[ command( subcommand ) ]
15    Vectorize( super::vectorize::Command ),
16  }
17
18  /// Execute Raster command.
19  pub async fn command
20  (
21    command : Command,
22  )
23  {
24    match command
25    {
26      Command::Vectorize( c )  =>
27      {
28        super::vectorize::command( c ).await;
29      }
30    }
31  }
32}
33
34crate::mod_interface!
35{
36  layer vectorize;
37  layer common;
38
39  own use
40  {
41    Command,
42    command
43  };
44}