import { Task } from "flowbject";

export default {
  getUser: (name: string = "getUser", resultPath: string | null = null) => {
    const task = new Task(name);
    task.setResource("user:get");

    if (resultPath) {
      task.resultPath.set(resultPath);
    }
    return task;
  },
};
