From add817dddf333cc82b81747310ca119a5eef607a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 11 Sep 2023 19:37:37 -0700 Subject: [PATCH] Commands::Interactive --- src/main.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c9ad47a..00e9489 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,9 +13,10 @@ struct Cli { #[derive(Subcommand)] enum Commands { Download(MapList), + Upload, Scan, Replace, - Upload, + Interactive, } #[derive(Args)] @@ -48,6 +49,11 @@ fn class_is_a(class: &str, superclass: &str) -> bool { //upload //iter maps/verified //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{ let mut scripts = std::vec::Vec::::new(); @@ -217,12 +223,17 @@ fn upload() -> Result<(), Box>{ unimplemented!() } +fn interactive() -> Result<(), Box>{ + unimplemented!() +} + fn main() -> Result<(), Box> { let cli = Cli::parse(); match cli.command { Commands::Download(map_list)=>download(map_list.maps), + Commands::Upload=>upload(), Commands::Scan=>scan(), Commands::Replace=>replace(), - Commands::Upload=>upload(), + Commands::Interactive=>interactive(), } }