forked from StrafesNET/map-tool
ARE YOU STUPID
This commit is contained in:
parent
110ec94a08
commit
54c26d6e1e
@ -361,15 +361,13 @@ impl std::str::FromStr for UploadAction {
|
|||||||
Ok(Self::Skip)
|
Ok(Self::Skip)
|
||||||
}else if s=="new\n"{
|
}else if s=="new\n"{
|
||||||
Ok(Self::New)
|
Ok(Self::New)
|
||||||
}else{
|
}else if let Ok(asset_id)=s[..s.len()-1].parse::<u64>(){
|
||||||
if let Ok(asset_id)=s[..s.len()-1].parse::<u64>(){
|
|
||||||
Ok(Self::Upload(asset_id))
|
Ok(Self::Upload(asset_id))
|
||||||
}else{
|
}else{
|
||||||
Err(ParseUploadActionErr)
|
Err(ParseUploadActionErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fn upload() -> BoxResult<()>{
|
fn upload() -> BoxResult<()>{
|
||||||
//interactive prompt per upload:
|
//interactive prompt per upload:
|
||||||
|
Loading…
Reference in New Issue
Block a user