feat: add the ability to specify the output format when listing ports

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-17 18:03:36 -05:00
parent 44054ac993
commit 78d24ead09
4 changed files with 26 additions and 6 deletions

View File

@@ -28,7 +28,8 @@ func main() {
err = ports.TriggerPortsConfigure(appName)
case "ports-get":
appName := flag.Arg(0)
err = ports.TriggerPortsGet(appName)
format := flag.Arg(1)
err = ports.TriggerPortsGet(appName, format)
case "ports-get-available":
err = ports.TriggerPortsGetAvailable()
case "ports-get-property":