use crate::ops::forc_index_new;
use anyhow::Result;
use clap::Parser;
use std::path::PathBuf;
#[derive(Debug, Parser)]
pub struct Command {
pub path: PathBuf,
#[clap(long, help = "Name of indexer.")]
pub name: Option<String>,
#[clap(long, help = "Namespace to which indexer belongs.")]
pub namespace: Option<String>,
#[clap(long, help = "Resolve indexer asset filepaths using absolute paths.")]
pub absolute_paths: bool,
#[clap(short, long, help = "Enable verbose output.")]
pub verbose: bool,
}
pub fn exec(command: Command) -> Result<()> {
forc_index_new::init(command)?;
Ok(())
}