function resolveCLI(cli) {
  const modulePath = './node_modules/' + cli;
  try {
    return require.resolve(path.join(getPackageDir(), modulePath));
  } catch (e) {
    return require.resolve(cli);
  }
}
/**
 * Resolve the path of the cli command
 * @param {string} cli
 */
Resolve the path of the cli command
@param {string} cli
Resolve the path of the cli command @param { string } cli
function resolveCLI(cli) {
  const modulePath = './node_modules/' + cli;
  try {
    return require.resolve(path.join(getPackageDir(), modulePath));
  } catch (e) {
    return require.resolve(cli);
  }
}
function resolveCLI ( cli ) { const modulePath = './node_modules/' + cli ; try { return require . resolve ( path . join ( getPackageDir ( ) , modulePath ) ) ; } catch ( e ) { return require . resolve ( cli ) ; } }
Resolve the path of the cli command
 @param {string} cli
Resolve the path of the cli command @param { string } cli