def cli(ctx: Context, previous_version: str, current_version: str) -> None: """Welcome to change log generator""" previous_logs = GitLogs(previous_version) current_logs = GitLogs(current_version) previous_logs.fetch() current_logs.fetch() base_parameters = BaseParameters(previous_logs, current_logs) ctx.obj = base_parameters
def main(ctx: Context): """A simple program to make flatpak build and test easier""" obj = AttrDict() ctx.obj = obj obj.repo_dir = os.environ.get( "FLATPAK_REPO", os.path.expandvars(os.path.expanduser("~/.local/share/flatpak-repo")), ) obj.build_dir = os.environ.get("FLATPAK_BUILD_DIR", "./.build")
def cli(context: Context, check_signatures: bool, verbosity: int = LOGGING_DEFAULT): """Verifies embedded signatures, and the integrity of docker image layers and metadata.""" if verbosity is None: verbosity = LOGGING_DEFAULT set_log_levels(verbosity) context.obj = { "check_signatures": check_signatures, "verbosity": verbosity }
async def cli(ctx: ClickContext, files: Path, outdir: Path) -> None: """Convert files from a digiarch generated file database. OUTDIR specifies the directory in which to output converted files. It must be an existing directory.""" try: file_db: FileDB = FileDB(f"sqlite:///{files}") except Exception: raise click.ClickException(f"Failed to load {files} as a database.") else: click.secho("Collecting files...", bold=True) files_: List[ArchiveFile] = await file_db.get_files() if not files_: raise click.ClickException("Database is empty. Aborting.") ctx.obj = FileConv(files=files_, db=file_db, out_dir=outdir)
def cli( ctx: Context, version: str, version_rc: str, ) -> None: """Welcome to releasing send email CLI interface!""" base_parameters = BaseParameters(version, version_rc) base_parameters.template_arguments["receiver_email"] = RECEIVER_EMAIL base_parameters.template_arguments["project_name"] = PROJECT_NAME base_parameters.template_arguments["project_module"] = PROJECT_MODULE base_parameters.template_arguments[ "project_description"] = PROJECT_DESCRIPTION base_parameters.template_arguments["version"] = base_parameters.version base_parameters.template_arguments[ "version_rc"] = base_parameters.version_rc ctx.obj = base_parameters
def cli( context: Context, dry_run: False, signature_type: "sign", verbosity: int = LOGGING_DEFAULT, ): """Creates and embeds signatures into docker images.""" if verbosity is None: verbosity = LOGGING_DEFAULT set_log_levels(verbosity) context.obj = { "dry_run": dry_run, "signature_type": signature_type, "verbosity": verbosity, }
def cli( context: Context, check_signatures: bool, dry_run: False, verbosity: int = LOGGING_DEFAULT, ): """Replicates docker images while verifying embedded signatures, and the integrity of docker image layers and metadata.""" if verbosity is None: verbosity = LOGGING_DEFAULT set_log_levels(verbosity) context.obj = { "check_signatures": check_signatures, "dry_run": dry_run, "verbosity": verbosity, }
def cli( ctx: Context, apache_email: str, apache_username: str, apache_password: str, version: str, version_rc: str, ) -> None: """Welcome to releasing send email CLI interface!""" base_parameters = BaseParameters(apache_email, apache_username, apache_password, version, version_rc) base_parameters.template_arguments["project_name"] = PROJECT_NAME base_parameters.template_arguments["project_module"] = PROJECT_MODULE base_parameters.template_arguments[ "project_description"] = PROJECT_DESCRIPTION base_parameters.template_arguments["version"] = base_parameters.version base_parameters.template_arguments[ "version_rc"] = base_parameters.version_rc base_parameters.template_arguments["sender_email"] = base_parameters.email ctx.obj = base_parameters
def cli( ctx: Context, file: Optional[Path], destination_file: Optional[Path], dry_run: bool, print_yaml: bool, ) -> None: config_file: Optional[Path] = None if file is not None: config_file = Path(file).absolute() elif Path.cwd().absolute().joinpath("components.yaml").is_file(): config_file = Path.cwd().absolute().joinpath("components.yaml") if ctx.obj is None: ctx.obj = {} ctx.obj["config"] = config_yaml.Config(components_yaml_file=config_file) ctx.obj["config_file"] = config_file ctx.obj["destination_file"] = destination_file ctx.obj["dry_run"] = dry_run ctx.obj["print_yaml"] = print_yaml
def main(ctx: Context, filename: str, driver: str) -> None: driver = drivers.kac.ChangelogFormat(filename) ctx.obj = driver
def cli(context: Context, config_path: str, session: str): context.obj = create_auto_player(config_path=config_path, session=session)