code: def schema_to_command(
      p, name: str, callback: callable, add_message: bool
  ) -> click.Command:
      
      params = params_factory(p.schema["properties"], add_message=add_message)
      help = p.__doc__
      cmd = click.Command(name=name, callback=callback, params=params, help=help)
      return cmd
docs: Generates a ``notify`` :class:`click.Command` for :class:`~notifiers.core.Provider`
  
      :param p: Relevant Provider
      :param name: Command name
      :return: A ``notify`` :class:`click.Command`