1 """Base Command class"""
5 """Mixin interface for commands"""
11 """Return the command's name"""
16 """Can this be undone?"""
20 """Execute the command"""
24 """Undo the command"""
28 class ContextCommand(Command
):
29 """Base class for commands that operate on a context"""
31 def __init__(self
, context
):
32 self
.context
= context
33 self
.model
= context
.model
34 self
.cfg
= context
.cfg
35 self
.git
= context
.git
36 self
.selection
= context
.selection
37 self
.fsmonitor
= context
.fsmonitor