-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e637b5e
commit b2c2a26
Showing
8 changed files
with
53 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Update exercise tools. | ||
.DESCRIPTION | ||
Update the exercise tools for each exercise. | ||
.EXAMPLE | ||
PS C:\> bin/update-exercise-tools.ps1 | ||
#> | ||
|
||
$ErrorActionPreference = "Stop" | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
Get-ChildItem -Path exercises -Filter dotnet-tools.json -Force -Recurse | ForEach-Object { | ||
dotnet tool update fantomas-tool --tool-manifest $_.FullName | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<# | ||
.SYNOPSIS | ||
Update the exercises. | ||
.DESCRIPTION | ||
Update the exercises' docs, metadata, and tests. | ||
.PARAMETER Exercise | ||
The slug of the exercise to update (optional). | ||
.EXAMPLE | ||
The example below will update all exercises | ||
PS C:\> bin/update-exercises.ps1 | ||
.EXAMPLE | ||
The example below will update the "acronym" exercise | ||
PS C:\> bin/update-exercises.ps1 acronym | ||
#> | ||
|
||
[CmdletBinding(SupportsShouldProcess)] | ||
param ( | ||
[Parameter(Position = 0, Mandatory = $false)][string]$Exercise | ||
) | ||
|
||
$ErrorActionPreference = "Stop" | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
& bin/fetch-configlet | ||
|
||
if ($Exercise) { | ||
& configlet sync --docs --metadata --filepaths --update --yes --exercise $Exercise | ||
& dotnet run --project generators --exercise $Exercise | ||
} else { | ||
& configlet sync --docs --metadata --filepaths --update --yes | ||
& dotnet run --project generators | ||
} |
This file was deleted.
Oops, something went wrong.