added example output to README

This commit is contained in:
Falko Zurell 2024-11-18 23:16:34 +01:00
parent c5635b5c66
commit fdf0095463

View file

@ -7,7 +7,7 @@ The script will take the URL of the Wordpress site, the username and application
Install Rust on your machine. Copy the `.env.example` to `.env`
# running
# testing
`cargo run -- /path/to/your/image.jpg`
@ -17,3 +17,11 @@ Install Rust on your machine. Copy the `.env.example` to `.env`
`cargo build --release`
will build the binary in `./target/release/image-helper-wordpress`
# running
```
$image-helper-wordpress: ./target/release/image-helper-wordpress /Users/username/Pictures/DJI_0247.jpg
Generated description: Aerial view of a circular lake surrounded by dense forest, with a small cluster of houses lining one edge. A second smaller lake is visible in the background, also encircled by forest.
Successfully uploaded image to WordPress with description
Image URL: https://example.wordpress.com/wp-content/uploads/2024/11/DJI_0247-scaled.jpg
```