Skip to content

Commit

Permalink
Fix formatting (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Oct 8, 2024
1 parent bef93c8 commit 661fc65
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog][keep-a-changelog],
and this project adheres to [Semantic Versioning][semver].

[keep-a-changelog]: https://keepachangelog.com/en/1.0.0/
[semver]: https://semver.org/spec/v2.0.0.html

## [Unreleased]

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# AnyPackage.ModuleFast

AnyPackage.ModuleFast is an AnyPackage provider that facilitates installing PowerShell modules and their dependencies quickly.
AnyPackage.ModuleFast is an AnyPackage provider that facilitates installing
PowerShell modules and their dependencies quickly.

## Install AnyPackage.ModuleFast

```PowerShell
```powershell
Install-PSResource AnyPackage.ModuleFast
```

## Import AnyPackage.ModuleFast

```PowerShell
```powershell
Import-Module AnyPackage.ModuleFast
```

## Sample usages

### Install a package

```PowerShell
```powershell
Install-Package Az
```

Expand Down
18 changes: 6 additions & 12 deletions src/AnyPackage.ModuleFast.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -96,23 +96,17 @@ class ModuleFastProvider : PackageProvider, IFindPackage, IInstallPackage {

if ($spec.Contains('>=')) {
return $spec.Split('>=')[0]
}
elseif ($spec.Contains('<=')) {
} elseif ($spec.Contains('<=')) {
return $spec.Split('<=')[0]
}
elseif ($spec.Contains('=')) {
} elseif ($spec.Contains('=')) {
return $spec.Split('=')[0]
}
elseif ($spec.Contains(':')) {
} elseif ($spec.Contains(':')) {
return $spec.Split(':')[0]
}
elseif ($spec.Contains('<')) {
} elseif ($spec.Contains('<')) {
return $spec.Split('<')[0]
}
elseif ($spec.Contains('>')) {
} elseif ($spec.Contains('>')) {
return $spec.Split('>')[0]
}
else {
} else {
return $spec
}
}
Expand Down

0 comments on commit 661fc65

Please sign in to comment.