Ejemplo n.º 1
0
 async def run_with_client(self, args: Namespace,
                           client: IdbClient) -> None:
     async for install_response in client.install(args.bundle_path):
         if install_response.progress != 0.0 and not args.json:
             print("Installed {install_response.progress}%")
         elif args.json:
             print(
                 json.dumps({
                     "installedAppBundleId": install_response.name,
                     "uuid": install_response.uuid,
                 }))
         else:
             print(
                 f"Installed: {install_response.name} {install_response.uuid}"
             )
Ejemplo n.º 2
0
Archivo: app.py Proyecto: zlhope/idb
 async def run_with_client(self, args: Namespace,
                           client: IdbClient) -> 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}"
         )
Ejemplo n.º 3
0
 async def install_bundles(self, args: Namespace, client: IdbClient) -> 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