diff --git a/.github/PSModule.yml b/.github/PSModule.yml index cd0c099..b68e464 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -19,3 +19,12 @@ Test: # Build: # Docs: # Skip: true +Linter: + env: + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false diff --git a/src/functions/public/Test-Admin.ps1 b/src/functions/public/Test-Admin.ps1 index 90161e4..abd2668 100644 --- a/src/functions/public/Test-Admin.ps1 +++ b/src/functions/public/Test-Admin.ps1 @@ -3,8 +3,14 @@ .SYNOPSIS Test if the current context is running as a specified role. + .DESCRIPTION + This function checks if the current user context has Administrator privileges on Windows or is root on Unix-based systems. + It returns $true if the user has the required privileges, otherwise $false. + .EXAMPLE - Test-Role + ```pwsh + Test-Admin + ``` Test if the current context is running as an Administrator.