Moved upload_photo to an example

This commit is contained in:
Aaron Power
2018-06-29 11:17:36 +01:00
parent 523d83022e
commit 53f403d99d
4 changed files with 12 additions and 33 deletions
+12
View File
@@ -0,0 +1,12 @@
mod register;
use std::error;
fn main() -> Result<(), Box<error::Error>> {
let mastodon = register::get_mastodon_data()?;
let input = register::read_line("Enter the path to the photo you'd like to post: ")?;
mastodon.media(input.into())?;
Ok(())
}