mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
27 lines
518 B
JavaScript
Executable File
27 lines
518 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { parseArgs } from 'node:util';
|
|
import { extract } from '../crextractor.js';
|
|
|
|
const args = parseArgs({
|
|
options: {
|
|
target: {
|
|
type: 'string',
|
|
default: 'tv',
|
|
},
|
|
output: {
|
|
type: 'string',
|
|
},
|
|
cleanup: {
|
|
type: 'boolean',
|
|
default: true,
|
|
},
|
|
},
|
|
});
|
|
|
|
extract({
|
|
target: args.values.target,
|
|
output: args.values.output ?? (args.values.target === 'tv' ? 'credentials.tv.json' : 'credentials.mobile.json'),
|
|
cleanup: args.values.cleanup,
|
|
});
|