async def run_with_client(self, args: Namespace, client: Client) -> None: artifact: Optional[InstalledArtifact] = None compression = (Compression[args.compression] if args.compression is not None else None) async for info in client.install( bundle=args.bundle_path, make_debuggable=args.make_debuggable, compression=compression, override_modification_time=args.override_mtime, ): artifact = info progress = info.progress if progress is None: continue self.logger.info(f"Progress: {progress}") if args.json: print( json.dumps({ "installedAppBundleId": none_throws(artifact).name, "uuid": none_throws(artifact).uuid, })) else: print( f"Installed: {none_throws(artifact).name} {none_throws(artifact).uuid}" )
async def run_with_client(self, args: Namespace, client: Client) -> None: artifact: Optional[InstalledArtifact] = None async for info in client.install(args.bundle_path): artifact = info progress = info.progress if progress is None: continue self.logger.info(f"Progress: {progress}") if args.json: print( json.dumps({ "installedAppBundleId": none_throws(artifact).name, "uuid": none_throws(artifact).uuid, })) else: print( f"Installed: {none_throws(artifact).name} {none_throws(artifact).uuid}" )
async def install_bundles(self, args: Namespace, client: Client) -> None: await super().install_bundles(args, client) async for app in client.install(args.test_host_app_bundle_id): args.test_host_app_bundle_id = app.name