(
self, args: argparse.Namespace, config: utils.CommandLineConfig
)
| 1105 | help='Print the progress of the operation to the console.') |
| 1106 | |
| 1107 | def run( |
| 1108 | self, args: argparse.Namespace, config: utils.CommandLineConfig |
| 1109 | ) -> None: |
| 1110 | config.ee_init() |
| 1111 | for asset in args.asset_id: |
| 1112 | recursive = args.recursive |
| 1113 | if recursive: |
| 1114 | info = self._safe_get_info(asset, args.verbose) |
| 1115 | recursive = info and info['type'] in self.recursive_types |
| 1116 | self._delete_asset(asset, recursive, args.verbose, args.dry_run) |
| 1117 | |
| 1118 | def _safe_get_info(self, asset_id, verbose): |
| 1119 | try: |
no test coverage detected