Skip to content

Add MacroCommand demo to Command Pattern#21

Merged
darbyluv2code merged 1 commit intomainfrom
feature/add-macro-command
Mar 17, 2026
Merged

Add MacroCommand demo to Command Pattern#21
darbyluv2code merged 1 commit intomainfrom
feature/add-macro-command

Conversation

@darbyluv2code
Copy link
Copy Markdown
Owner

Summary

  • Add MacroCommand class that groups multiple SmartHomeCommand objects into a named scene
  • Executes commands in order, undoes them in reverse (LIFO)
  • Update MainApp with runMacroCommandDemo() showing a "Good Morning" scene

Test plan

  • Review MacroCommand.java implements SmartHomeCommand correctly
  • Verify MainApp compiles and runMacroCommandDemo() runs without errors
  • Confirm undo reverses all commands in the correct order

@darbyluv2code darbyluv2code merged commit f9b72d8 into main Mar 17, 2026
@darbyluv2code darbyluv2code deleted the feature/add-macro-command branch March 17, 2026 23:25
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.

1 participant