Exemple #1
0
 def __init__(self, parent):
     super(DefaultCommand, self).__init__(parent)
     self.AddOptionEntry(commands.OptionEntry(
         'r', 'rel_out_dir', 'rel_out_dir', str, "-", "rel_path",
         'Specify the relative path of the directory'
         'where rime-out\'s are put.'))
     self.AddOptionEntry(commands.OptionEntry(
         'a', 'abs_out_dir', 'abs_out_dir', str, "-", "abs_path",
         'Specify the absolute path of the directory'
         'where rime-out\'s are put.'))
Exemple #2
0
 def __init__(self, parent):
     super(HtmlifyFull, self).__init__('htmlify_full', '',
                                       'Htmlify full plugin', '', parent)
     self.AddOptionEntry(
         rime_commands.OptionEntry('s', 'skip_clean', 'skip_clean', bool,
                                   False, None,
                                   'Skip cleaning generated files up.'))
Exemple #3
0
 def __init__(self, parent):
     super(Wikify, self).__init__(
         'wikify', '', 'Upload test results to Pukiwiki. (wikify plugin)',
         '', parent)
     self.AddOptionEntry(
         rime_commands.OptionEntry('s', 'skip_clean', 'skip_clean', bool,
                                   False, None,
                                   'Skip cleaning generated files up.'))
Exemple #4
0
 def __init__(self, parent):
     assert parent is None
     super(Default, self).__init__(
         None, None, '', consts.GLOBAL_HELP, parent)
     self.AddOptionEntry(commands.OptionEntry(
         'h', 'help', 'help', bool, False, None,
         'Show this help.'))
     self.AddOptionEntry(commands.OptionEntry(
         'j', 'jobs', 'parallelism', int, 0, 'n',
         'Run multiple jobs in parallel.'))
     self.AddOptionEntry(commands.OptionEntry(
         'd', 'debug', 'debug', bool, False, None,
         'Turn on debugging.'))
     self.AddOptionEntry(commands.OptionEntry(
         'C', 'cache_tests', 'cache_tests', bool, False, None,
         'Cache test results.'))
     self.AddOptionEntry(commands.OptionEntry(
         'p', 'precise', 'precise', bool, False, None,
         'Do not run timing tasks concurrently.'))
     self.AddOptionEntry(commands.OptionEntry(
         'k', 'keep_going', 'keep_going', bool, False, None,
         'Do not skip tests on failures.'))
     self.AddOptionEntry(commands.OptionEntry(
         'q', 'quiet', 'quiet', bool, False, None,
         'Skip unimportant message.'))
Exemple #5
0
    def __init__(self, parent):
        super(Upload,
              self).__init__('upload', '[<target>]',
                             'Upload testsets to export to online judges.', '',
                             parent)

        self.AddOptionEntry(
            commands.OptionEntry('u', 'upload', 'upload', bool, False, None,
                                 'Without this option, just dry-run.'))