This repository has been archived on 2026-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
rusty_midi_commander/src/projector/mod.rs

27 lines
754 B
Rust

//! Contains all projector related commands
pub mod panasonic;
pub mod proj_traits;
use clap::Parser;
use panasonic::PanasonicProjector;
pub use proj_traits::{AdvancedCommands, GenericProjector};
use serde::{Deserialize, Serialize};
/// Enumerate all the VP types
#[derive(Parser, Serialize, Deserialize, Clone, Debug)]
pub enum VPType {
Panasonic,
}
/// Create a new empty projector of the given type
///
/// While inelegant, this is the most straightforward way of having a generic projector
pub fn new_default_projector_of_type(vptype: &VPType) -> Result<(), crate::RustyMidiError> {
match vptype {
VPType::Panasonic => {
PanasonicProjector::default().create_default_config_file("new_panasonic.json")
}
}
}