docs: def workdir_loaded(func):
      """
      Decorator to make sure that the workdir is loaded when calling the
      decorated function
      """
  
      @wraps(func)
      def decorator(workdir, *args, **kwargs):
          if not workdir.loaded:
              workdir.load()
  
          return func(workdir, *args, **kwargs)
  
      return decorator