class PlaylistPlugin (Builtin):
def __init__(self):
super(PlaylistPlugin, self).__init__(name='playlist')
-
- def commands(self):
- return [NextCommand(), PreviousCommand(), JumpCommand(),
- IndexCommand(), CurveListCommand(),
- SaveCommand(), LoadCommand(),
- AddCommand(), AddGlobCommand(),
- RemoveCommand(), FilterCommand(), NoteFilterCommand()]
+ self._commands = [
+ NextCommand(), PreviousCommand(), JumpCommand(),
+ IndexCommand(), CurveListCommand(),
+ SaveCommand(), LoadCommand(),
+ AddCommand(), AddGlobCommand(),
+ RemoveCommand(), FilterCommand(), NoteFilterCommand()]
+ self._setup_commands()
# Define common or complicated arguments