Example #1
0
    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())
Example #2
0
 def test_sessions(self):
     self.call(account.CmdSessions(), "", "Your current session(s):", caller=self.account)
Example #3
0
 def at_cmdset_creation(self):
     "Populate the cmdset"
     self.add(account.CmdSessions())