forked from MightyPork/elefren-fork
Moved upload_photo to an example
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
Reference in New Issue
Block a user