Skip to content

Add shorthand flag -p for --publish option in generate command#446

Merged
mathieu-benoit merged 2 commits intoscore-spec:mainfrom
Venkatesh1505:feature/publish-shorthand-flag
Apr 5, 2026
Merged

Add shorthand flag -p for --publish option in generate command#446
mathieu-benoit merged 2 commits intoscore-spec:mainfrom
Venkatesh1505:feature/publish-shorthand-flag

Conversation

@Venkatesh1505
Copy link
Copy Markdown
Contributor

Description

Add -p as a shorthand flag for --publish in the generate command, consistent with how other flags like --output (-o), --file (-f), and --image (-i) already have shorthand versions.

What does this PR do?

This change adds a single-character shorthand -p for the --publish flag in score-compose generate, making it quicker to use from the command line.

Before: score-compose generate score.yaml --publish 8080:my-workload:80
After: score-compose generate score.yaml -p 8080:my-workload:80

Resolves #445

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New chore (expected functionality to be implemented)

Checklist:

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I've signed off with an email address that matches the commit author.

Signed-off-by: Venkatesh R <venkyravi97@gmail.com>
Signed-off-by: Venkatesh R <venkyravi97@gmail.com>
Copy link
Copy Markdown
Contributor

@mathieu-benoit mathieu-benoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution, @Venkatesh1505!

@mathieu-benoit mathieu-benoit merged commit 194a5c9 into score-spec:main Apr 5, 2026
8 checks passed
@mathieu-benoit
Copy link
Copy Markdown
Contributor

JFYI, associated doc now updated accordingly too: score-spec/docs#265, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants