@partoska/p6a 1.11.1 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/bin/p6a.js +1 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ working with your photos offline.
|
|
|
19
19
|
- Automatic folder organization by event and date.
|
|
20
20
|
- Filter by events you own or have favorited.
|
|
21
21
|
- Create and update events, moderate uploads, and manage media.
|
|
22
|
+
- Upload photos directly to an event from the command line.
|
|
22
23
|
- Get or download invite links, QR codes, and printable share cards.
|
|
23
24
|
- Works on macOS, Linux, and Windows.
|
|
24
25
|
- [Agent skills available](https://github.com/partoska/p6a-skills) for use with
|
|
@@ -98,6 +99,7 @@ renamed automatically if an event's name changes.
|
|
|
98
99
|
| `link` | Get invite link for an event |
|
|
99
100
|
| `media` | List media items for an event |
|
|
100
101
|
| `download` | Download media for an event |
|
|
102
|
+
| `upload` | Upload a photo to an event |
|
|
101
103
|
| `help` | Show usage information |
|
|
102
104
|
| `version` | Print version information |
|
|
103
105
|
|
|
@@ -190,6 +192,21 @@ p6a download -e <event-id> -t ./favorites --favorite-only
|
|
|
190
192
|
p6a download -e <event-id> -m <media-id> -t photo.jpg
|
|
191
193
|
```
|
|
192
194
|
|
|
195
|
+
### `upload` — Upload photos
|
|
196
|
+
|
|
197
|
+
Upload a local media file to an event. Prints the new media ID on success. On
|
|
198
|
+
moderated events, uploads are created unapproved and require moderator approval
|
|
199
|
+
before they appear to other guests.
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
# Upload a single photo.
|
|
203
|
+
p6a upload -e <event-id> -s photo.jpg
|
|
204
|
+
|
|
205
|
+
# Upload every JPEG in the current directory.
|
|
206
|
+
EID=<event-id>
|
|
207
|
+
for f in *.jpg; do p6a upload -e "$EID" -s "$f"; done
|
|
208
|
+
```
|
|
209
|
+
|
|
193
210
|
### `link`, `qr` & `card` — Share events
|
|
194
211
|
|
|
195
212
|
```bash
|
package/bin/p6a.js
CHANGED
|
@@ -47,8 +47,7 @@ const target = TARGETS[key];
|
|
|
47
47
|
if (!target) {
|
|
48
48
|
console.error(
|
|
49
49
|
`p6a: unsupported platform/architecture "${key}".\n` +
|
|
50
|
-
`Supported: ${Object.keys(TARGETS).join(", ")}.\n`
|
|
51
|
-
`Please file an issue at https://github.com/partoska/p6a-cmd/issues`,
|
|
50
|
+
`Supported: ${Object.keys(TARGETS).join(", ")}.\n`
|
|
52
51
|
);
|
|
53
52
|
process.exit(1);
|
|
54
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@partoska/p6a",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "Command-line tool to manage and sync your event photos from Partoska.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"p6a": "bin/p6a.js"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"bin/"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@partoska/p6a-darwin": "1.11.
|
|
13
|
-
"@partoska/p6a-linux-x64": "1.11.
|
|
14
|
-
"@partoska/p6a-linux-arm64": "1.11.
|
|
15
|
-
"@partoska/p6a-win32-x64": "1.11.
|
|
16
|
-
"@partoska/p6a-win32-arm64": "1.11.
|
|
12
|
+
"@partoska/p6a-darwin": "1.11.2",
|
|
13
|
+
"@partoska/p6a-linux-x64": "1.11.2",
|
|
14
|
+
"@partoska/p6a-linux-arm64": "1.11.2",
|
|
15
|
+
"@partoska/p6a-win32-x64": "1.11.2",
|
|
16
|
+
"@partoska/p6a-win32-arm64": "1.11.2"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|