Like it was done there #370 with --image|-i, let's do the same with score-compose generate --publish and have the shortened version score-compose generate -p.
Guidance
That's the line that needs to be updated: https://github.com/score-spec/score-compose/blob/main/internal/command/generate.go#L458
Success criteria
This should work successfully:
make build
./score-compose init
./score-compose generate score.yaml --publish 8080:example:8080
And the -p option should be visible when running the ./score-compose generate --help command.
Like it was done there #370 with
--image|-i, let's do the same withscore-compose generate --publishand have the shortened versionscore-compose generate -p.Guidance
That's the line that needs to be updated: https://github.com/score-spec/score-compose/blob/main/internal/command/generate.go#L458
Success criteria
This should work successfully:
And the
-poption should be visible when running the./score-compose generate --helpcommand.