25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
825B

  1. <#
  2. .SYNOPSIS
  3. Print the proposed spec (Markdown) for the user to approve before generation.
  4. .DESCRIPTION
  5. Interview step 4. Works on a draft once every stage except "review" is complete. Shows
  6. scope, assumptions, target and toolchain, the first milestone, acceptance checks and the
  7. destination folder (and whether it is free). Exit 1 if the brief is not complete enough.
  8. .EXAMPLE
  9. pwsh -File tools/Show-FoundrySpec.ps1 drafts/my-game.json
  10. #>
  11. [CmdletBinding()]
  12. param([Parameter(Mandatory, Position = 0)][string]$Path)
  13. Import-Module (Join-Path $PSScriptRoot 'Foundry.psm1') -Force
  14. try {
  15. $full = (Resolve-Path -LiteralPath $Path).ProviderPath
  16. Format-FoundrySpecPreview -Brief (Read-FoundryJson $full) -BriefPath $full
  17. } catch {
  18. Write-Host $_.Exception.Message -ForegroundColor Yellow
  19. exit 1
  20. }

Powered by TurnKey Linux.