add version flag and Gitea release targets

This commit is contained in:
Ein Anderssono
2026-06-11 20:32:08 +02:00
parent ca3a3e4a2a
commit 6002fda1f6
4 changed files with 53 additions and 9 deletions
+5
View File
@@ -26,6 +26,9 @@ func run(args []string, stdout, stderr io.Writer, bridge photos.Bridge) int {
return cmdBackupAll(args[1:], stdout, stderr, bridge)
case "export":
return cmdExport(args[1:], stdout, stderr, bridge)
case "version", "--version", "-v":
fmt.Fprintln(stdout, version)
return 0
case "help", "--help", "-h":
usage(stderr)
return 0
@@ -45,6 +48,7 @@ Usage:
photoscli tree
photoscli backup-all --out <dir> [--size <px>] [--originals]
photoscli export --album-id <id> --out <dir> [--size <px>] [--originals]
photoscli version
Commands:
albums List user-created albums
@@ -52,6 +56,7 @@ Commands:
tree Show folder and album hierarchy
backup-all Export all albums into the Photos folder tree
export Export optimized JPEG previews or original files
version Print version
Flags:
--album-id <id> Album local identifier or title (required for photos/export)