INNER CODE UNIT · TypeScript
showSupportedExtensions
niklashigi/apk-mitm · src/cli.ts:253
function showSupportedExtensions(): never {
console.log(chalk`{yellow
It looks like you tried running {bold apk-mitm} with an unsupported file type!
Only the following file extensions are supported: {bold .apk}, {bold .xapk}, and {bold .apks} (or {bold .zip})
}`)
process.exit(1)
}
/**
* Error that is shown when the file provided through the `--certificate` flag
* has an unsupported extension. Exits with status 1 after showing the message.
*/
function showSupportedCertificateExtensions(): never {
console.log(chalk`{yellow
It looks like the certificate file you provided is unsupported!