Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🩹 [Patch]: Use the Scope enum from the Admin module #34

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/Linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_YAML_PRETTIER: false
VALIDATE_POWERSHELL: false # Need to resolve dependencies before running source code tests. This cannot find the Admin module.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
This is a PowerShell module for managing fonts.
It helps you to install, uninstall and list fonts on the system.

## Prerequisites
## Supported platforms

This module currently only supports Windows operating systems.
This module supports managing fonts on Linux, macOS and Windows operating systems.

## Installation

Expand Down
4 changes: 0 additions & 4 deletions src/classes/public/Scope.ps1

This file was deleted.

4 changes: 3 additions & 1 deletion src/functions/public/Get-Font.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function Get-Font {
#Requires -Modules @{ ModuleName = 'Admin'; RequiredVersion = '1.1.2' }

function Get-Font {
<#
.SYNOPSIS
Retrieves the installed fonts.
Expand Down
2 changes: 1 addition & 1 deletion src/functions/public/Install-Font.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Modules Admin
#Requires -Modules @{ ModuleName = 'Admin'; RequiredVersion = '1.1.2' }

function Install-Font {
<#
Expand Down
2 changes: 1 addition & 1 deletion src/functions/public/Uninstall-Font.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Modules Admin
#Requires -Modules @{ ModuleName = 'Admin'; RequiredVersion = '1.1.2' }

function Uninstall-Font {
<#
Expand Down
1 change: 1 addition & 0 deletions src/header.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
using module @{ ModuleName = 'Admin'; RequiredVersion = '1.1.2' }
Loading