Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

920 B
Raw Blame
/**
 * @fileoverview Suggested next steps component
 * Displays helpful command suggestions at the end of the list
 */

import boxen from 'boxen';
import chalk from 'chalk';
import { getBoxWidth } from '../../utils/ui.js';

/**
 * Display suggested next steps section
 */
export function displaySuggestedNextSteps(): void {
	const steps = [
		`${chalk.cyan('1.')} Run ${chalk.yellow('task-master next')} to see what to work on next`,
		`${chalk.cyan('2.')} Run ${chalk.yellow('task-master expand --id=<id>')} to break down a task into subtasks`,
		`${chalk.cyan('3.')} Run ${chalk.yellow('task-master set-status --id=<id> --status=done')} to mark a task as complete`
	];

	console.log(
		boxen(
			chalk.white.bold('Suggested Next Steps:') + '\n\n' + steps.join('\n'),
			{
				padding: 1,
				margin: { top: 0, bottom: 1 },
				borderStyle: 'round',
				borderColor: 'gray',
				width: getBoxWidth(0.97)
			}
		)
	);
}