Skip to content

Commit 9ba9c61

Browse files
authored
fix(agents-md): migration doc confirmation (#178)
1 parent 3986ea7 commit 9ba9c61

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/actions/docs-action.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ function validateRequirements(cwd: string, selection: DocSelection): ValidationR
147147
}
148148

149149
async function confirmRequirements(cwd: string, selection: DocSelection): Promise<boolean> {
150+
if (selection === 'migration') {
151+
Logger.warn('\n⚠️ HeroUI React v2 to v3 migration documentation is a work in progress.');
152+
Logger.log('The migration guides may be incomplete or subject to change.');
153+
Logger.newLine();
154+
155+
const confirmed = await getConfirm('Do you want to continue and install the migration docs?');
156+
157+
return confirmed;
158+
}
159+
150160
const validation = validateRequirements(cwd, selection);
151161

152162
if (validation.isValid) {

0 commit comments

Comments
 (0)