vdev/commands/features.rs
1use std::path::PathBuf;
2
3use anyhow::Result;
4use clap::Args;
5
6use crate::features;
7
8/// Extract the set of features required to run a given config
9#[derive(Args, Debug)]
10#[command()]
11pub struct Cli {
12 config: PathBuf,
13}
14
15impl Cli {
16 pub fn exec(self) -> Result<()> {
17 for feature in features::load_and_extract(&self.config)? {
18 println!("{feature}");
19 }
20 Ok(())
21 }
22}