-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Add generator command with clap
- Loading branch information
1 parent
998b1bf
commit af304a4
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
use clap::Parser; | ||
use std::{error::Error, path::PathBuf}; | ||
|
||
#[derive(Debug, Parser)] | ||
pub struct Generator { | ||
#[clap(required = true, help = "Path to the configuration file")] | ||
path: PathBuf, | ||
} | ||
|
||
impl Generator { | ||
pub fn generate(&self) -> Result<(), Box<dyn Error>> { | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters