static runCommand(func, { location, ...args }) {
    const runFunc = (packageName) => func({ ...args, packageName });

    if (location === 'both') {
      runFunc('client');
      runFunc('server');
    } else {
      runFunc(location);
    }
  }
Calls CLI operation with correct location.

@param func - The func to call.
@param location - The location for a new module [client|server|both].
@param args - The function for deleting existing module.