@mailo037/veo 1.0.1 → 1.0.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 +10 -1
- package/package.json +1 -1
- package/src/cli.js +6 -2
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ veo <url> [options]
|
|
|
45
45
|
--audio Audio only (MP3 by default)
|
|
46
46
|
--format <format> Video: mp4, mkv, webm, mov
|
|
47
47
|
Audio: mp3, m4a, aac, opus, flac, wav
|
|
48
|
-
--version
|
|
48
|
+
-v, --version Show installed version (also: veo version)
|
|
49
49
|
-h, --help Show help
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -72,6 +72,15 @@ npx @mailo037/veo "https://example.com/video.mp4" --output ./downloads
|
|
|
72
72
|
- After each successful download, veo checks the npm registry at most once per day for a newer version and prints a one-line notice on stderr (never on failure). Disable it with `VEO_NO_UPDATE_CHECK=1`; `VEO_REGISTRY`/`npm_config_registry` are respected.
|
|
73
73
|
- Exit status is `0` on success, `1` on errors, and `130` on cancellation.
|
|
74
74
|
|
|
75
|
+
## Installed version
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
veo version
|
|
79
|
+
# Alternatively: veo --version or veo -v
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Prints the installed version (currently `1.0.2`) without accessing the network or downloading a backend.
|
|
83
|
+
|
|
75
84
|
## Updating veo
|
|
76
85
|
|
|
77
86
|
```bash
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ Options:
|
|
|
17
17
|
--open Open the saved file with your default app
|
|
18
18
|
--audio Download audio only (default: mp3)
|
|
19
19
|
--format <format> Video: mp4, mkv, webm, mov; audio: mp3, m4a, aac, opus, flac, wav
|
|
20
|
-
--version
|
|
20
|
+
-v, --version Show installed version (also: veo version)
|
|
21
21
|
-h, --help Show help
|
|
22
22
|
|
|
23
23
|
Examples:
|
|
@@ -32,6 +32,10 @@ Only download content you are authorized or legally permitted to download.
|
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
34
|
export function parseCli(args) {
|
|
35
|
+
if (args[0] === 'version') {
|
|
36
|
+
if (args.length !== 1) throw new Error('Usage: veo version');
|
|
37
|
+
return { version: true };
|
|
38
|
+
}
|
|
35
39
|
const { values, positionals } = parseArgs({ args, allowPositionals: true, strict: true, options: {
|
|
36
40
|
quality: { type: 'string', short: 'q', default: 'best' },
|
|
37
41
|
output: { type: 'string', short: 'o', default: process.cwd() },
|
|
@@ -40,7 +44,7 @@ export function parseCli(args) {
|
|
|
40
44
|
audio: { type: 'boolean', default: false },
|
|
41
45
|
format: { type: 'string' },
|
|
42
46
|
help: { type: 'boolean', short: 'h' },
|
|
43
|
-
version: { type: 'boolean' },
|
|
47
|
+
version: { type: 'boolean', short: 'v' },
|
|
44
48
|
} });
|
|
45
49
|
if (values.help || values.version) return values;
|
|
46
50
|
if (positionals.length !== 1) throw new Error('Provide exactly one video URL. Run veo --help for usage.');
|