Files
crextractor/bin/cli.js
T

27 lines
518 B
JavaScript
Raw Normal View History

2025-08-23 21:14:56 +05:00
#!/usr/bin/env node
2026-02-15 17:44:53 +05:00
import { parseArgs } from 'node:util';
import { extract } from '../crextractor.js';
2025-08-23 21:14:56 +05:00
2025-08-23 23:49:07 +05:00
const args = parseArgs({
options: {
target: {
type: 'string',
default: 'tv',
},
output: {
type: 'string',
},
cleanup: {
type: 'boolean',
2025-08-24 10:26:02 +05:00
default: true,
2025-08-23 23:49:07 +05:00
},
},
});
extract({
target: args.values.target,
output: args.values.output ?? (args.values.target === 'tv' ? 'credentials.tv.json' : 'credentials.mobile.json'),
cleanup: args.values.cleanup,
});