Ditto for AutoCAD -- I loved seeing how the equivalent CLI command appeared in the log as I was using the GUI to draw.
I don't think Paint.NET or GIMP do quite what you've described though. They show a history of action, but they don't show commands.
Here is a example: https://i.imgur.com/NNFruMx.jpg