use crate::Result;
use crate::cli::NewArgs;
use crate::dir_context::DirContext;
use crate::hub::get_hub;
pub async fn exec_new(new_config: impl Into<NewConfig>, dir_context: DirContext) -> Result<()> {
let _hub = get_hub();
let _aipack_paths = dir_context.aipack_paths();
let _new_config = new_config.into();
todo!("This needs to be reimplemented")
}
#[allow(unused)]
#[derive(Debug)]
pub struct NewConfig {
pub agent_path: String,
pub open: bool,
}
impl From<NewArgs> for NewConfig {
fn from(args: NewArgs) -> Self {
NewConfig {
agent_path: args.agent_path,
open: args.open,
}
}
}