Skip to content

Commit

Permalink
feat: ✨ Remove traces that are too specific
Browse files Browse the repository at this point in the history
  • Loading branch information
AntwortEinesLebens committed Oct 19, 2024
1 parent c1ca9be commit 8efa812
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 458 deletions.
21 changes: 2 additions & 19 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later

use crate::actions::{
ads::AlternateDataStreams, drivers::Drivers, files::Files, mutexes::Mutexes, pipes::Pipes,
processes::Processes,
};
use crate::actions::{drivers::Drivers, processes::Processes};
use clap::{Args, Subcommand};
use std::error::Error;

pub mod ads;
pub mod drivers;
pub mod files;
pub mod mutexes;
pub mod pipes;
pub mod processes;

#[derive(Debug, Args)]
Expand All @@ -24,11 +17,7 @@ pub struct Actions {

#[derive(Debug, Subcommand)]
pub enum Commands {
AlternateDataStreams(AlternateDataStreams),
Drivers(Drivers),
Files(Files),
Mutexes(Mutexes),
Pipes(Pipes),
Processes(Processes),
}

Expand All @@ -39,13 +28,7 @@ pub trait Runnable {
impl Runnable for Actions {
fn run(&self) -> Result<(), Box<dyn Error>> {
match &self.command {
Commands::AlternateDataStreams(alternate_data_streams) => {
alternate_data_streams as &dyn Runnable
}
Commands::Drivers(drivers) => drivers,
Commands::Files(files) => files,
Commands::Mutexes(mutexes) => mutexes,
Commands::Pipes(pipes) => pipes,
Commands::Drivers(drivers) => drivers as &dyn Runnable,
Commands::Processes(processes) => processes,
}
.run()
Expand Down
29 changes: 0 additions & 29 deletions src/actions/ads.rs

This file was deleted.

85 changes: 0 additions & 85 deletions src/actions/ads/create.rs

This file was deleted.

29 changes: 0 additions & 29 deletions src/actions/files.rs

This file was deleted.

112 changes: 0 additions & 112 deletions src/actions/files/create.rs

This file was deleted.

29 changes: 0 additions & 29 deletions src/actions/mutexes.rs

This file was deleted.

57 changes: 0 additions & 57 deletions src/actions/mutexes/create.rs

This file was deleted.

Loading

0 comments on commit 8efa812

Please sign in to comment.