|
- use std::path::PathBuf;
-
- pub fn create(args: crate::CommandNew) -> eyre::Result<()> {
- let crate::CommandNew {
- kind,
- lang: _,
- name,
- path,
- } = args;
-
- match kind {
- crate::Kind::Operator => create_operator(name, path),
- crate::Kind::CustomNode => create_custom_node(name, path),
- }
- }
-
- fn create_operator(name: String, path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
- todo!()
- }
-
- fn create_custom_node(name: String, path: Option<PathBuf>) -> Result<(), eyre::ErrReport> {
- todo!()
- }
|