Commands::Interactive

This commit is contained in:
Quaternions 2023-09-11 19:37:37 -07:00
parent 7e7d3c507a
commit add817dddf

View File

@ -13,9 +13,10 @@ struct Cli {
#[derive(Subcommand)] #[derive(Subcommand)]
enum Commands { enum Commands {
Download(MapList), Download(MapList),
Upload,
Scan, Scan,
Replace, Replace,
Upload, Interactive,
} }
#[derive(Args)] #[derive(Args)]
@ -48,6 +49,11 @@ fn class_is_a(class: &str, superclass: &str) -> bool {
//upload //upload
//iter maps/verified //iter maps/verified
//interactively print DisplayName/Creator and ask for target upload ids //interactively print DisplayName/Creator and ask for target upload ids
//interactive
//iter maps/unprocessed
//for each unique script, load it into the file current.lua and have it open in sublime text
//I can edit the file and it will edit it in place
//I pass/fail(with comment)/allow each script
fn get_scripts(dom:rbx_dom_weak::WeakDom) -> Vec<rbx_dom_weak::Instance>{ fn get_scripts(dom:rbx_dom_weak::WeakDom) -> Vec<rbx_dom_weak::Instance>{
let mut scripts = std::vec::Vec::<rbx_dom_weak::Instance>::new(); let mut scripts = std::vec::Vec::<rbx_dom_weak::Instance>::new();
@ -217,12 +223,17 @@ fn upload() -> Result<(), Box<dyn std::error::Error>>{
unimplemented!() unimplemented!()
} }
fn interactive() -> Result<(), Box<dyn std::error::Error>>{
unimplemented!()
}
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Cli::parse(); let cli = Cli::parse();
match cli.command { match cli.command {
Commands::Download(map_list)=>download(map_list.maps), Commands::Download(map_list)=>download(map_list.maps),
Commands::Upload=>upload(),
Commands::Scan=>scan(), Commands::Scan=>scan(),
Commands::Replace=>replace(), Commands::Replace=>replace(),
Commands::Upload=>upload(), Commands::Interactive=>interactive(),
} }
} }