[docs]@wutta_typer.command()deftell(ctx:typer.Context,profile:Annotated[str,typer.Option("--profile","-p",help="Profile (type) of telemetry data to collect. ""This also determines where/how data is submitted. ""If not specified, default profile is assumed.",),]=None,dry_run:Annotated[bool,typer.Option("--dry-run",help="Go through all the motions but do not submit ""the data to server.",),]=False,):""" Collect and submit telemetry data """config=ctx.parent.wutta_configapp=config.get_app()telemetry=app.get_telemetry_handler()data=telemetry.collect_all_data(profile=profile)log.info("data collected for: %s",", ".join(sorted(data)))log.debug("%s",data)ifdry_run:log.info("dry run, so will not submit data to server")else:telemetry.submit_all_data(profile=profile,data=data)log.info("data submitted okay")