validateServerlessConfigDependency(command) {
    if (
      command.configDependent ||
      command.serviceDependencyMode === 'required'
    ) {
      if (!this.serverless.configurationInput) {
        const msg = [
          'This command can only be run in a Serverless service directory. ',
          "Make sure to reference a valid config file in the current working directory if you're using a custom config file",
        ].join('')
        throw new ServerlessError(
          msg,
          'INVALID_COMMAND_MISSING_SERVICE_DIRECTORY',
        )
      }
    }
  }
If the command has no use when operated in a working directory with no serverless
configuration file, throw an error