Skip to content

Commit

Permalink
spec: Add options for the spec subcommand
Browse files Browse the repository at this point in the history
Add the missing bundle option, as documented in
https://github.com/opencontainers/runc/blob/main/man/runc-spec.8.md

Signed-off-by: Christophe de Dinechin <[email protected]>
  • Loading branch information
c3d committed Mar 7, 2023
1 parent b3e2292 commit 190ce1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/liboci-cli/src/spec.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
use clap::Parser;
use std::path::PathBuf;

/// Command generates a config.json
#[derive(Parser, Debug)]
pub struct Spec {
/// Set path to the root of the bundle directory
#[clap(long, short)]
pub bundle: Option<PathBuf>,

/// Generate a configuration for a rootless container
#[clap(long)]
pub rootless: bool,
Expand Down

0 comments on commit 190ce1d

Please sign in to comment.