Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def jockey::ui::AbstractUI::run (   self  ) 

Evaluate command line arguments and do the appropriate action.

If no argument was specified, this starts the interactive UI.

This returns the exit code of the program.

Definition at line 232 of file ui.py.

00232                  :
        '''Evaluate command line arguments and do the appropriate action.

        If no argument was specified, this starts the interactive UI.
        
        This returns the exit code of the program.
        '''
        if self.argv_options.update_db:
            self.update_driverdb()

        if self.argv_options.list:
            self.list()
            return 0
        elif self.argv_options.enable:
            if self.change_enable(self.argv_options.enable, True):
                return 0
            else:
                return 1
        elif self.argv_options.disable:
            if self.change_enable(self.argv_options.disable, False):
                return 0
            else:
                return 1
        elif self.argv_options.check is not None:
            if self.check():
                return 0
            else:
                return 1
        elif self.argv_options.check_composite:
            if self.check_composite():
                return 0
            else:
                return 1
        # start the UI
        self.ui_init()
        return self.ui_main_loop()

    def list(self):


Generated by  Doxygen 1.6.0   Back to index