Only when 'Development Environment' is enabled, add menu item 'Debug Sample Command' to the 'Existing Images' context menu.
This triggers a deliberate halt left in production code to help users wanting to extend the system to discover how commands are triggered. Now inspect the 'context' instance variable and define your operation on it.
ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/README.md
+A PhLDebugSampleCommand is provided simply as an example to assist users to learn how they might add their own commands to PharoLauncher.
\ No newline at end of file

ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/class/group.st
+as yet unclassified
+group
+ ^99
\ No newline at end of file

ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/class/title.st
+as yet unclassified
+title
+ ^ 'Debug Sample Command'
\ No newline at end of file

ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/instance/execute.st
+action
+execute
+ "
+ This is a deliberate halt left in production code to help users wanting to extend
+ the system to discover how commands are triggered. Now inspect the 'context'
+ instance variable and define your operation on it.
+
+ See PharoLauncher>>commandClassesForXXXX and senders for how to register commands.
+ "
+
+ Halt now.
+
\ No newline at end of file

ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/instance/isApplicable.st
+testing
+isApplicable
+ ^ PhLDeploymentScript developmentEnvironmentEnabled
\ No newline at end of file

ADD
src/PharoLauncher-Spec.package/PhLDebugSampleCommand.class/properties.json
+{
+ "commentStamp" : "<historical>",
+ "super" : "PhLImageCommand",
+ "category" : "PharoLauncher-Spec",
+ "classinstvars" : [ ],
+ "pools" : [ ],
+ "classvars" : [ ],
+ "instvars" : [ ],
+ "name" : "PhLDebugSampleCommand",
+ "type" : "normal"
+}
\ No newline at end of file

Only when 'Development Environment' is enabled, add menu item 'Debug Sample Command' to the 'Existing Images' context menu.

This triggers a deliberate halt left in production code to help users wanting to extend the system to discover how commands are triggered. Now inspect the 'context' instance variable and define your operation on it.