def at_cmdset_creation(self): """ This is the only method defined in a cmdset, called during its creation. It should populate the set with command instances. As and example we just add the empty base `Command` object. It prints some info. """ super(SessionCmdSet, self).at_cmdset_creation() # # any commands you add below will overload the default ones. # self.remove(account.CmdSessions())
def test_sessions(self): self.call(account.CmdSessions(), "", "Your current session(s):", caller=self.account)
def at_cmdset_creation(self): "Populate the cmdset" self.add(account.CmdSessions())