diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-03-31 21:57:01 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-03-31 21:57:01 +0200 |
commit | 2e5e4b5736c446198e36760e254b7c17dd987166 (patch) | |
tree | b74915864a2c80dbc0a0ebe26a52140a934f45c5 /src/command_line_interface.rs | |
parent | docs(example): Add an example directory (diff) | |
download | lpm-2e5e4b5736c446198e36760e254b7c17dd987166.zip |
refactor(treewide): Improve code quality by working with a FileTree
The FileTree has been taken from the implementation written by my for the Trinitrix project. It alleviates the problem, where functions had to do many things themselves.
Diffstat (limited to 'src/command_line_interface.rs')
-rw-r--r-- | src/command_line_interface.rs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/command_line_interface.rs b/src/command_line_interface.rs deleted file mode 100644 index 5d24ae5..0000000 --- a/src/command_line_interface.rs +++ /dev/null @@ -1,40 +0,0 @@ -use clap::{Parser, Subcommand}; - -/// A project manager for LaTeX -#[derive(Parser, Debug)] -#[clap(author, version, about, long_about = None)] -pub struct Args { - #[command(subcommand)] - pub cli: Command, -} - -#[derive(Subcommand, Debug)] -pub enum Command { - /// Generates a new part - #[command(subcommand)] - New(SubCommand), -} - -#[derive(Subcommand, Debug)] -pub enum SubCommand { - /// Adds a section - Section { - /// Name of the new Section - name: String, - }, - - /// Adds a chapter - Chapter { - /// Name of the new Chapter - name: String, - }, - // /// generates a new project - // Project { - // /// Name of the new Project - // name: String, - // /// Name of the first chapter - // first_chapter: String, - // // /// Name of the first section - // // first_section: String, - // }, -} |