// use std::path::PathBuf; use clap::Parser; use kxio::{fs::FileSystem, net::Net}; #[derive(Parser, Debug)] #[clap(version = clap::crate_version!(), author = clap::crate_authors!(), about = clap::crate_description!())] struct Commands { #[clap(subcommand)] command: Command, } #[derive(Parser, Debug)] enum Command { Init, Check, Import, } #[derive(Clone)] pub struct Ctx { pub fs: FileSystem, pub net: Net, } impl Default for Ctx { fn default() -> Self { Self { fs: kxio::fs::new(PathBuf::default()), net: kxio::net::new(), } } }