The at watcher, called to invoke the watch command.

    .. note::
        This state exists to support special handling of the ``watch``
        :ref:`requisite <requisites>`. It should not be called directly.

        Parameters for this function should be set by the state being triggered.

    name
        The name of the atjob

def mod_watch(name, **kwargs):
    '''
    The at watcher, called to invoke the watch command.

    .. note::
        This state exists to support special handling of the ``watch``
        :ref:`requisite <requisites>`. It should not be called directly.

        Parameters for this function should be set by the state being triggered.

    name
        The name of the atjob

    '''
    ret = {'name': name,
           'changes': {},
           'result': False,
           'comment': ''}

    if kwargs['sfun'] == 'watch':
        for p in ['sfun', '__reqs__']:
            del kwargs[p]
        kwargs['name'] = name
        ret = present(**kwargs)

    return ret