增加 Windows 脚本交互菜单
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user