Show AssetDatabase metadata for a project asset (GUID, type, importer). Example: u asset info Assets/Prefabs/Player.prefab
(
ctx: typer.Context,
path: Annotated[str, typer.Argument(help="Asset path")],
json_flag: Annotated[
bool,
typer.Option("--json", help="Output as JSON"),
] = False,
)
| 76 | @asset_app.command("info") |
| 77 | @handle_cli_errors |
| 78 | def asset_info( |
| 79 | ctx: typer.Context, |
| 80 | path: Annotated[str, typer.Argument(help="Asset path")], |
| 81 | json_flag: Annotated[ |
| 82 | bool, |
| 83 | typer.Option("--json", help="Output as JSON"), |
| 84 | ] = False, |
| 85 | ) -> None: |
| 86 | """Show AssetDatabase metadata for a project asset (GUID, type, importer). |
| 87 | |
| 88 | Example: |
| 89 | u asset info Assets/Prefabs/Player.prefab |
| 90 | """ |
| 91 | context: CLIContext = ctx.obj |
| 92 | result = context.client.asset.info(path=path) |
| 93 | if _should_json(context, json_flag): |
| 94 | print_json(result, None) |
| 95 | else: |
| 96 | print_key_value(result, path) |
| 97 | |
| 98 | |
| 99 | @asset_app.command("deps") |
nothing calls this directly
no test coverage detected