From 9ba69bbb1432d8ace57541633f890bec2e5fe29d Mon Sep 17 00:00:00 2001 From: Ben Meier Date: Fri, 19 Jul 2024 22:39:24 +0100 Subject: [PATCH] chore: fixed test Signed-off-by: Ben Meier --- internal/command/generate_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/command/generate_test.go b/internal/command/generate_test.go index 87a579f..cd7854a 100644 --- a/internal/command/generate_test.go +++ b/internal/command/generate_test.go @@ -52,6 +52,12 @@ Examples: # Provide overrides when one score file is provided score-compose generate score.yaml --override-file=./overrides.score.yaml --override-property=metadata.key=value + # Publish a port exposed by a workload for local testing + score-compose generate score.yaml --publish 8080:my-workload:80 + + # Publish a port from a resource host and port for local testing, the middle expression is RESOURCE_ID.OUTPUT_KEY + score-compose generate score.yaml --publish 5432:postgres#my-workload.db.host:5432 + Flags: --build stringArray An optional build context to use for the given container --build=container=./dir or --build=container={"context":"./dir"} --env-file string Location to store a skeleton .env file for compose - this will override existing content @@ -60,6 +66,7 @@ Flags: -o, --output string The output file to write the composed compose file to (default "compose.yaml") --override-property stringArray An optional set of path=key overrides to set or remove --overrides-file string An optional file of Score overrides to merge in + --publish stringArray An optional set of HOST_PORT::CONTAINER_PORT to publish on the host system. Global Flags: --quiet Mute any logging output