Ejemplo n.º 1
0
 def __init__(self, manager):
     parser = NullCommandParser(prog = PLUGIN_COMMAND,
                                description = self.__doc__)
     parser.add_command(callback = self.callback)
     FileInstaller.__init__(self, manager,
                            PLUGIN_COMMAND,
                            parser,
                            PLUGIN_DIR)
     return
Ejemplo n.º 2
0
 def __init__(self, manager):
     parser = NullCommandParser(prog = BASH_UTILS_COMMAND,
                                description = self.__doc__)
     parser.add_command(callback = self.callback,
                        narg = 0)
     FileInstaller.__init__(self, manager,
                            BASH_UTILS_COMMAND,
                            parser,
                            BASH_UTILS_DIR)
     return
Ejemplo n.º 3
0
    def __init__(self, manager):
        parser = CommandParser(prog = PLUGIN_COMMAND,
                               description = self.__doc__)
        parser.add_command("install",
                           narg = 0,
                           callback = self.install,
                           help = "install screen setting files")
        parser.add_command("twitter",
                           narg = 0,
                           callback = self.twitter,
                           help = "print timeline of your twitter. \
this is a helper command for screen.")
        parser.add_command("date",
                           narg = 0,
                           callback = self.date,
                           help = "print date. this is a helper commmand \
for screen.")
        FileInstaller.__init__(self, manager,
                               PLUGIN_COMMAND,
                               parser,
                               PLUGIN_DIR)
        return