Skip to content

Commit 6e4c13e

Browse files
committed
feat: update @mediaproc/core to version 1.4.0 and integrate explainPreActionHook for improved command handling
1 parent 21b0ce5 commit 6e4c13e

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@gltf-transform/cli": "^4.2.1",
4848
"@gltf-transform/core": "^4.2.1",
4949
"@lottiefiles/dotlottie-web": "^0.61.0",
50-
"@mediaproc/core": "^1.3.0",
50+
"@mediaproc/core": "^1.4.0",
5151
"boxen": "^8.0.1",
5252
"chalk": "^5.3.0",
5353
"commander": "^14.0.2",

plugins/audio/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import { Command } from 'commander';
33
import { register } from './register.js';
4-
import { getVersion } from '@mediaproc/core';
4+
import { explainPreActionHook, getVersion } from '@mediaproc/core';
55

66
const program = new Command();
77
program
@@ -96,7 +96,7 @@ Professional audio processing powered by FFmpeg/FFprobe. Convert, normalize, tri
9696
Use 'mediaproc-audio <command> --help' for comprehensive documentation on each command.
9797
`)
9898
.version(getVersion('../package.json'));
99-
99+
program.hook('preAction', explainPreActionHook);
100100
register(program);
101101
program.parse(process.argv);
102102

plugins/video/src/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import { Command } from 'commander';
33
import { register } from './register.js';
4-
import { getVersion } from '@mediaproc/core';
4+
import { explainPreActionHook, getVersion } from '@mediaproc/core';
55

66
const program = new Command();
77
program
@@ -38,8 +38,9 @@ Professional video processing powered by FFmpeg. Compress, transcode, edit, and
3838
📚 Use 'mediaproc-video <command> --help' for detailed command documentation.
3939
`)
4040
.version(getVersion('../package.json'));
41-
41+
program.hook('preAction', explainPreActionHook);
4242
register(program);
43+
4344
program.parse(process.argv);
4445

4546
if (!process.argv.slice(2).length) {

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)