增加 Windows 脚本交互菜单

This commit is contained in:
mid
2026-08-08 18:35:01 +08:00
parent 4e3d7fed85
commit 41398fcf3d
6 changed files with 61 additions and 1 deletions
+11
View File
@@ -50,6 +50,17 @@ describe('deployment configuration', () => {
expect(script).toContain("@('ci', '--include=dev')")
})
it('offers an interactive Windows action menu without changing explicit automation actions', async () => {
const script = await readProjectFile('web-tools.ps1')
expect(script).toContain('function Select-InteractiveAction')
expect(script).toContain("[2] Update from Git, rebuild, and start")
expect(script).toContain("[3] Update from Git and rebuild only")
expect(script).toContain("$PSBoundParameters.ContainsKey('Action')")
expect(script).toContain("[ValidateSet('start', 'update')]")
expect(script).not.toContain("[string]$Action = 'start'")
})
it('provides standard entry points for a new AI session', async () => {
const [entryReadme, agentGuide, completeReadme] = await Promise.all([
readProjectFile('README.md'),