Skip to content

Commit 00815ec

Browse files
authored
feat: mark the "promote-bundle" command as deprecated (canonical#2226)
This command is deprecated and will be removed in Charmcraft 4.0. Bundle commands will remain available in Charmcraft 3. CRAFT-4005
1 parent 9f3d6eb commit 00815ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

charmcraft/application/commands/store.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,11 @@ def fill_parser(self, parser: "ArgumentParser") -> None:
10371037

10381038
def run(self, parsed_args: "Namespace") -> None:
10391039
"""Run the command."""
1040+
emit.progress(
1041+
"Bundle commands are deprecated and will be removed in Charmcraft 4.",
1042+
permanent=True,
1043+
)
1044+
10401045
if not isinstance(self._services.project, project.Bundle):
10411046
raise CraftError("promote-bundle must be run on a bundle.")
10421047

0 commit comments

Comments
 (0)