UNPKG

react-native-cert-pinner

Version:

For React Native, pins TLS connections to specific trusted certificates' public keys

44 lines (31 loc) 1.1 kB
const Log = require('../Log'); const menus = { main: ` pinset [command] [options] init ..... initialize pinset configuration gen ...... generate pinset configuration version .. show package version help ..... show help menu for a command `, init: ` pinset init [options] [config] --force, -f ........... overwrite existing configuration file config ................ configuration file - defaults to 'pinset.json' `, gen: ` pinset gen [options] [config] --android, -a <path> .. path to Android project (defaults to './android') --ios, -i <path> ...... path to iOS project (defaults to './ios') --force, -f ........... always overwrite existing configuration config ................ configuration file - defaults to 'pinset.json' `, // lookup: ` // pinset lookup <url> // url ................... url (include 'https://')` }; module.exports = (args) => { const subCmd = args._[0] === 'help' ? args._[1] : args._[0]; Log.info(menus[subCmd] || menus.main); }