Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
use clap::{Parser, Subcommand};
use std::collections::HashSet;
use std::fs;
use std::path::Path;
use serde::Serialize;

mod git_hooks;

use git_hooks::GitHooks;
Expand All @@ -16,9 +11,12 @@ use detector::{SecretDetector, SecretFinding};
use git_hooks::GitHooks;
use protector::{FileProtector, ProtectOption, ProtectResult, SensitiveFiles};

const VERSION: &str = "0.1.0";

#[derive(Parser)]
#[command(name = "enveil")]
#[command(about = "Secret detection and protection tool", long_about = None)]
#[command(version = VERSION)]
struct Cli {
#[command(subcommand)]
command: Commands,
Expand Down Expand Up @@ -63,6 +61,7 @@ enum Commands {
},
}

<<<<<<< HEAD
#[derive(Serialize)]
struct ScanResult {
path: String,
Expand Down Expand Up @@ -239,6 +238,7 @@ fn main() {

match &cli.command {
Commands::Scan { path, verbose, format } => {
<<<<<<< HEAD
let scan_path = path.as_deref().unwrap_or(".");

match scan_directory(Path::new(scan_path), *verbose) {
Expand Down
Loading