rain_metadata/cli/solc.rs
1pub mod artifact;
2
3use clap::Subcommand;
4use artifact::Artifact;
5
6/// command related to solc artifacts
7#[derive(Subcommand)]
8pub enum Solc {
9 /// Parse data out of a solc artifact.
10 Artifact(Artifact),
11}
12
13pub fn dispatch(solc: Solc) -> anyhow::Result<()> {
14 match solc {
15 Solc::Artifact(artifact) => artifact::artifact(artifact),
16 }
17}