(self, args, **kwargs)
| 268 | ) |
| 269 | |
| 270 | def run(self, args, **kwargs): |
| 271 | is_structured_output = args.json or args.yaml |
| 272 | |
| 273 | # If structured output is requested, do not print information about contents of pack |
| 274 | # This information is already exposed via st2 pack show ${pack_name} -j |
| 275 | if not is_structured_output: |
| 276 | self._get_content_counts_for_pack(args, **kwargs) |
| 277 | |
| 278 | return self.manager.install( |
| 279 | args.packs, |
| 280 | force=args.force, |
| 281 | skip_dependencies=args.skip_dependencies, |
| 282 | **kwargs, |
| 283 | ) |
| 284 | |
| 285 | def _get_content_counts_for_pack(self, args, **kwargs): |
| 286 | # Global content list, excluding "tests" |
nothing calls this directly
no test coverage detected