Skip to content

fix: add multi-module flags to tag subcommands#259

Merged
indaco merged 2 commits intomainfrom
fix/tag-subcommand-multimodule-flags
Apr 4, 2026
Merged

fix: add multi-module flags to tag subcommands#259
indaco merged 2 commits intomainfrom
fix/tag-subcommand-multimodule-flags

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 4, 2026

Description

Multi-module flags (--module, --all, --pattern, etc.) were defined only on the parent tag command. Due to the Before hook on the parent, urfave/cli/v3 did not propagate these flags to subcommands - running sley tag create --module <name> failed with "flag provided but not defined".

This moves MultiModuleFlags() to each subcommand that supports multi-module operations (create, list, push), matching how the bump command handles flag inheritance.

Also removes the -m alias from --message on tag create to avoid conflict with --module's -m alias from MultiModuleFlags.

Related Issue

  • None

Notes for Reviewers

  • None

indaco added 2 commits April 4, 2026 12:34
Move MultiModuleFlags to create, list, and push subcommands. Remove -m alias from --message on create to avoid conflict with --module alias.
@indaco indaco added the bug Something isn't working label Apr 4, 2026
@indaco indaco merged commit d73bffe into main Apr 4, 2026
7 checks passed
@indaco indaco deleted the fix/tag-subcommand-multimodule-flags branch April 4, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant