mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-16 01:44:24 +02:00
27 lines
525 B
JavaScript
Executable File
27 lines
525 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const { parseArgs } = require('node:util');
|
|
const { extract } = require('../crextractor');
|
|
|
|
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,
|
|
});
|