code: def with_category(category: str) -> Callable:
      
      def cat_decorator(func):
          categorize(func, category)
          return func
      return cat_decorator
docs: A decorator to apply a category to a command function.