예제 #1
0
    def Args(parser):
        """Register flags for this command.

    Args:
      parser: argparse.ArgumentParser to register arguments with.
    """
        job_utils.ArgsForJobRef(parser)
예제 #2
0
  def Args(parser):
    """Register flags for this command.

    Args:
      parser: argparse.ArgumentParser to register arguments with.
    """
    job_utils.ArgsForJobRef(parser)

    parser.add_argument(
        '--full', action='store_const',
        const=job_utils.JOB_VIEW_ALL,
        default=job_utils.JOB_VIEW_SUMMARY,
        help='Retrieve the full Job rather than the summary view')
예제 #3
0
파일: tail.py 프로젝트: bopopescu/brydzenie
  def Args(parser):
    """Register flags for this command."""
    job_utils.ArgsForJobRef(parser)

    parser.add_argument(
        '--changed-after', type=time_util.ParseTimeArg,
        help='Only display metrics that have changed after the given time')
    parser.add_argument(
        '--hide-committed', default=False, action='store_true',
        help='If true, hide committed values.')
    parser.add_argument(
        '--tentative', default=False, action='store_true',
        help='If true, display tentative values.')
예제 #4
0
파일: show.py 프로젝트: bopopescu/packmybot
    def Args(parser):
        """Register flags for this command.

    Args:
      parser: argparse.ArgumentParser to register arguments with.
    """
        job_utils.ArgsForJobRef(parser)

        parser.add_argument('--environment',
                            action='store_true',
                            help='If present, the environment will be listed.')
        parser.add_argument('--steps',
                            action='store_true',
                            help='If present, the steps will be listed.')
예제 #5
0
    def Args(parser):
        job_utils.ArgsForJobRef(parser)

        parser.add_argument(
            '--after',
            type=time_util.ParseTimeArg,
            help='Only display messages logged after the given time.')
        parser.add_argument(
            '--before',
            type=time_util.ParseTimeArg,
            help='Only display messages logged before the given time.')
        parser.add_argument(
            '--importance',
            choices=['debug', 'detailed', 'warning', 'error'],
            help='Minimum importance a message must have to be displayed',
            default='warning')