Commands::Interactive
This commit is contained in:
parent
4ca3d56f0f
commit
41d8e700c5
15
src/main.rs
15
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<rbx_dom_weak::Instance>{
|
||||
let mut scripts = std::vec::Vec::<rbx_dom_weak::Instance>::new();
|
||||
@ -217,12 +223,17 @@ fn upload() -> Result<(), Box<dyn std::error::Error>>{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn interactive() -> Result<(), Box<dyn std::error::Error>>{
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
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(),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user