def METHOD_NAME(f):
    """
    Decorator for snactor commands that require to be run in a repository directory.
    """
    @command_aware_wraps(f)
    def checker(*args, **kwargs):
        if not find_repository_basedir('.'):
            raise CommandError('This command must be executed from the repository directory.')
        return f(*args, **kwargs)
    return checker