Skip to content

Commit

Permalink
feat: add S3 collector
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanb committed Jun 20, 2023
1 parent 4a40c48 commit 9990e07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ colored_json = "3.0.1"
clap = { version = "4.0.29", features = ["derive"] }
nats = "0.24.0"
exporter = { git = "https://github.com/trustification/trustification.git" }
env_logger = "0.10"
log = "0.4.14"

[[bin]]
name = "guac"
Expand Down
2 changes: 2 additions & 0 deletions cli/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ use clap::Subcommand;
#[derive(Subcommand, Debug)]
pub enum CollectCommand {
File(FileCommand),
S3(exporter::Run),
}

impl CollectCommand {
pub async fn run(self) -> anyhow::Result<ExitCode> {
match self {
Self::File(command) => command.run().await,
Self::S3(command) => command.run().await,
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ async fn main() -> impl Termination {
//let purl = "pkg:pypi/django";
//let purl = "pkg:rpm/redhat/openssl@1.1.1k-7.el8_6";

env_logger::init();
Cli::parse().run().await
}

0 comments on commit 9990e07

Please sign in to comment.