Skip to content

Commit fa9a9fa

Browse files
Remove header.ps1 and move the module requirements to the REST entry point
The oversized module design comment lived only in header.ps1. Drop the file and relocate the two #Requires statements (PowerShell 7.0 and Context 8.1.6) to the top of Invoke-ConfluenceRestMethod.ps1 — the core function that every command routes through — so the build still generates the manifest's RequiredModules and PowerShellVersion. The framework injects the default CmdletBinding/param header when header.ps1 is absent.
1 parent 9be6481 commit fa9a9fa

2 files changed

Lines changed: 4 additions & 45 deletions

File tree

src/functions/public/API/Invoke-ConfluenceRestMethod.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
function Invoke-ConfluenceRestMethod {
1+
#Requires -Version 7.0
2+
#Requires -Modules @{ ModuleName = 'Context'; RequiredVersion = '8.1.6' }
3+
4+
function Invoke-ConfluenceRestMethod {
25
<#
36
.SYNOPSIS
47
Call the Confluence REST API using a stored (or supplied) context.

src/header.ps1

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)