buildText(task) {
        if (!task.hasSubtasks()) {
            if (task.output && typeof task.output === 'string') {
                const data = task.output.trim().split('\n').pop();
                return `${task.title} ${this.options.separator} ${chalk.gray(data)}`;
            }

            return task.title;
        }

        const subtaskText = task.subtasks
            .filter(subtask => subtask.isPending())
            .map(subtask => this.buildText(subtask))
            .join('/');

        return `${task.title} ${this.options.separator} ${subtaskText}`;
    }
Builds the spinner text for a given task
@param {Task} task