Skip to content

[feature request] Add shortcut params for generate --publish --> generate -p #445

@mathieu-benoit

Description

@mathieu-benoit

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.

Metadata

Metadata

Labels

enhancementNew feature or requestgoPull requests that update Go codegood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions