-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
James Brundage
committed
Mar 16, 2024
1 parent
2e153f6
commit c42ea2a
Showing
1 changed file
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Tech Constant Hugo { | ||
<# | ||
.SYNOPSIS | ||
Hugo Tech Definition | ||
.DESCRIPTION | ||
Defines Hugo as a techology PipeScript can work with. | ||
#> | ||
param() | ||
$Name = 'Hugo' | ||
$Synopsis = 'A Fast and Flexible Static Site Generator' | ||
$Description = @' | ||
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. | ||
'@ | ||
$Website = 'https://gohugo.io/' | ||
$Install = { | ||
if ($IsMacOS) {brew install hugo} | ||
elseif ($IsLinux) { sudo snap install hugo } | ||
elseif ( | ||
$executionContext.SessionState.InvokeCommand.GetCommand('choco','Application,Alias') | ||
) | ||
{choco install hugo-extended} | ||
elseif ( | ||
$executionContext.SessionState.InvokeCommand.GetCommand('scoop','Application,Alias') | ||
) | ||
{scoop install hugo} | ||
elseif ( | ||
$executionContext.SessionState.InvokeCommand.GetCommand('winget','Application,Alias') | ||
) | ||
{winget install Hugo.Hugo.Extended} | ||
else { | ||
'https://gohugo.io/download/' | ||
} | ||
} | ||
$Serve = {hugo server @args} | ||
$Language = 'Go' | ||
} |