diff --git a/crates/liboci-cli/src/features.rs b/crates/liboci-cli/src/features.rs new file mode 100644 index 0000000000..109d54c17c --- /dev/null +++ b/crates/liboci-cli/src/features.rs @@ -0,0 +1,7 @@ +use clap::Parser; + +/// Return the features list for a container +/// This is not a documented subcommand of runc yet, but it was introduced by +/// https://github.com/opencontainers/runc/pull/3296 +#[derive(Parser, Debug)] +pub struct Features {} diff --git a/crates/liboci-cli/src/lib.rs b/crates/liboci-cli/src/lib.rs index 48fb9d46d9..7215b69112 100644 --- a/crates/liboci-cli/src/lib.rs +++ b/crates/liboci-cli/src/lib.rs @@ -17,6 +17,7 @@ pub use {create::Create, delete::Delete, kill::Kill, start::Start, state::State} mod checkpoint; mod events; mod exec; +mod features; mod list; mod pause; mod ps; @@ -26,8 +27,8 @@ mod spec; mod update; pub use { - checkpoint::Checkpoint, events::Events, exec::Exec, list::List, pause::Pause, ps::Ps, - resume::Resume, run::Run, spec::Spec, update::Update, + checkpoint::Checkpoint, events::Events, exec::Exec, features::Features, list::List, + pause::Pause, ps::Ps, resume::Resume, run::Run, spec::Spec, update::Update, }; // Subcommands parsed by liboci-cli, based on the [OCI @@ -52,6 +53,7 @@ pub enum CommonCmd { Checkpointt(Checkpoint), Events(Events), Exec(Exec), + Features(Features), List(List), Pause(Pause), #[clap(allow_hyphen_values = true)]