mirror of
https://gitlab.com/JKANetwork/powerfulcomputermanager.git
synced 2026-02-23 21:43:43 +01:00
GUI version to control all
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Build 1
|
||||
# Build 2
|
||||
Write-Host "This utility is obsolete and may not work. Please use control.pyw"
|
||||
$root = $PSCommandPath | Split-Path -Parent
|
||||
. $root\config.ps1
|
||||
$server = (Get-Content "$root\configpcm.ini" | select -Skip 1 | ConvertFrom-StringData).server
|
||||
$resources = (Get-Content "$root\configpcm.ini" | select -Skip 1 | ConvertFrom-StringData).resources
|
||||
|
||||
|
||||
function seeGroups {
|
||||
$answer = Invoke-RestMethod -Method Get -Uri "$server/get/groups"
|
||||
@@ -255,7 +258,7 @@ function menuCooks {
|
||||
$CookName = Read-Host -Prompt "Nombre de la receta a añadir"
|
||||
seeGroups #Function
|
||||
$GroupName = Read-Host -Prompt "Nombre del grupo que quieres que lo tenga"
|
||||
Invoke-RestMethod -Method Get -Uri "$server/set/cook?GroupName=$GroupName&CookName=$CookName"
|
||||
Invoke-RestMethod -Method Get -Uri "$server/add/cookgrp?GroupName=$GroupName&CookName=$CookName"
|
||||
pause
|
||||
|
||||
} '5' {
|
||||
|
||||
Reference in New Issue
Block a user