summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-06-18 16:42:51 +0200
committerSoispha <soispha@vhack.eu>2023-06-18 16:42:51 +0200
commit2b869cfcd174d074911adf8dd261c914cfafda44 (patch)
treee4b12d3b5dcac68c253a28aede6520beed53671d /src/main.rs
parentChore: Initial commit (diff)
downloadlpm-2b869cfcd174d074911adf8dd261c914cfafda44.tar.gz
lpm-2b869cfcd174d074911adf8dd261c914cfafda44.zip
Fix(cli): Remove project option
Generating a project should be done on the nix side.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/main.rs b/src/main.rs
index b056c88..b1d0563 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,12 +1,12 @@
-use std::path::PathBuf;
-
 use clap::Parser;
 use command_line_interface::{
     Args,
     Command::New,
-    SubCommand::{Chapter, Project, Section},
+    SubCommand::{Chapter, Section},
+};
+use new::{
+    chapter::generate_new_chapter, section::generate_new_section,
 };
-use new::{chapter::generate_new_chapter, project::generate_new_project, section::generate_new_section};
 
 pub mod command_line_interface;
 pub mod data;
@@ -19,22 +19,22 @@ fn main() {
         New(new_command) => match new_command {
             Section { name } => generate_new_section(name).unwrap(),
             Chapter { name } => generate_new_chapter(name).unwrap(),
-            Project {
-                name,
-                first_chapter,
-                //first_section,
-            } => {
-                let preamble_path = PathBuf::from("/home/dt/repos/tex/preset/headers/preamble.tex");
-                let resource_path = PathBuf::from("/home/dt/repos/tex/preset/resources");
-                generate_new_project(
-                    name,
-                    first_chapter,
-                    //first_section,
-                    preamble_path,
-                    resource_path,
-                )
-                .unwrap()
-            }
+            //            Project {
+            //                name,
+            //                first_chapter,
+            //                //first_section,
+            //            } => {
+            //                let preamble_path = PathBuf::from("");
+            //                let resource_path = PathBuf::from("");
+            //                generate_new_project(
+            //                    name,
+            //                    first_chapter,
+            //                    //first_section,
+            //                    preamble_path,
+            //                    resource_path,
+            //                )
+            //                .unwrap()
+            //            }
         },
     }
 }