update README.md

This commit is contained in:
Syping 2025-10-27 21:22:10 +01:00
parent 43902dcbfb
commit 74018fc3b6

View file

@ -15,24 +15,23 @@ dotnet publish -c Release ragephoto-cli
```sh
# Exporting JPEG
ragephoto-cli get PGTA5123456789 --output photo.jpg
ragephoto-cli get "$INPUT" --output "photo.jpg"
# Getting Format
ragephoto-cli get PGTA5123456789 format
ragephoto-cli get "$INPUT" format
# Getting JSON
ragephoto-cli get PGTA5123456789 json
ragephoto-cli get "$INPUT" json
# Getting Title
ragephoto-cli get PGTA5123456789 title
ragephoto-cli get "$INPUT" title
# Replacing JPEG
ragephoto-cli set PGTA5123456789 --jpeg photo.jpg
ragephoto-cli set "$INPUT" --jpeg "photo.jpg"
# Patching Signature
ragephoto-cli set PGTA5123456789 --json "$(ragephoto-cli get PGTA5123456789 json \
| jq -c ".sign = $(ragephoto-cli get PGTA5123456789 sign)")"
ragephoto-cli set "$INPUT" --update-sign
# Updating Title
ragephoto-cli set PGTA5123456789 --title "New Photo Title"
ragephoto-cli set "$INPUT" --title "New Photo Title"
```