Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluzzi committed Nov 3, 2023
2 parents 067bdb1 + 8c1070f commit d5d7e27
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Core/Commands/Open-Pelico/Open-Pelico.Cmd.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
enum PelicoWebsite {
App
Ibis
Flamingo
Shoebill
}

function Open-Pelico {
param (
[Parameter(Mandatory = $True)]
[PelicoWebsite] $Target
)

switch ($Target) {
([PelicoWebsite]::App) {
$URL = "$env:PELICO_URL/ui"
}

([PelicoWebsite]::Ibis) {
$URL = "$env:PELICO_URL/ibis/api/playground"
}

([PelicoWebsite]::Flamingo) {
$URL = "$env:PELICO_URL/flamingo/api/graphql"
}

([PelicoWebsite]::Shoebill) {
$URL = "$env:PELICO_URL/shoebill/api/graphql/graphql"
}

Default {
Write-Host "Website does not exist."
return
}
}

Start-Process $URL
}

0 comments on commit d5d7e27

Please sign in to comment.