예제 #1
0
def scan(ctx, verify, certs):
    """Scan endpoints with drheader."""
    ctx.ensure_object(dict)
    if certs:
        verify = certs
    else:
        verify = click.BOOL(verify)
    ctx.obj['verify'] = verify
예제 #2
0
파일: cli.py 프로젝트: SteffenRandrup/Veros
    def convert(self, value, param, ctx):
        assert param.nargs == 2

        if self.current_key is None:
            if value not in SETTINGS:
                self.fail('Unknown setting %s' % value)
            self.current_key = value
            return value

        assert self.current_key in SETTINGS
        setting = SETTINGS[self.current_key]
        self.current_key = None

        if setting.type is bool:
            return click.BOOL(value)

        return setting.type(value)
예제 #3
0
def update_status(id, status):
    logger.info("Updating Status Of The Line  Job Table")
    object_manager.job.update_status(id, click.BOOL(status))
예제 #4
0
def update(id, job_code, job_description, status):
    logger.info("Updating Row Job Table")
    jobs = object_manager.job.update_status(id, job_code, job_description,
                                            click.BOOL(status))
예제 #5
0
def filter_list(filter):
    logger.info("Showing Rows Listed By Filter Job Table")
    if filter.lower() in ("t", "f", "true", "false"):
        filter = click.BOOL(filter)

    object_manager.job.filter_list(filter)
예제 #6
0
def insert(job_code, job_description, status):
    logger.info("inserting new row job Table")
    object_manager.job.insert(job_code, job_description, click.BOOL(status))