added example output to README
This commit is contained in:
parent
c5635b5c66
commit
fdf0095463
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -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`
|
Install Rust on your machine. Copy the `.env.example` to `.env`
|
||||||
|
|
||||||
# running
|
# testing
|
||||||
|
|
||||||
|
|
||||||
`cargo run -- /path/to/your/image.jpg`
|
`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`
|
`cargo build --release`
|
||||||
|
|
||||||
will build the binary in `./target/release/image-helper-wordpress`
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue