We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e0f9c5 commit 77728fdCopy full SHA for 77728fd
1 file changed
command.py
@@ -18,7 +18,7 @@ def undo(self):
18
os.rename(self.dest, self.src)
19
20
21
-if __name__ == "__main__":
+def main():
22
command_stack = []
23
24
# commands are just pushed into the command stack
@@ -32,3 +32,6 @@ def undo(self):
32
# and can also be undone at will
33
for cmd in reversed(command_stack):
34
cmd.undo()
35
+
36
+if __name__ == "__main__":
37
+ main()
0 commit comments