ocinoco 0.1.0

Build OCI image with no container
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod build;
mod pack;

#[derive(Clone, Debug, clap::Subcommand)]
pub(crate) enum Command {
    Build(build::Args),
    Pack(pack::Args),
}

impl Command {
    pub(crate) async fn run(self) -> anyhow::Result<()> {
        match self {
            Self::Build(args) => build::run(args).await,
            Self::Pack(args) => pack::run(args).await,
        }
    }
}