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
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)
def update_status(id, status): logger.info("Updating Status Of The Line Job Table") object_manager.job.update_status(id, click.BOOL(status))
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))
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)
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))