(self, resource, *args, **kwargs)
| 239 | |
| 240 | class PackInstallCommand(PackAsyncCommand): |
| 241 | def __init__(self, resource, *args, **kwargs): |
| 242 | super(PackInstallCommand, self).__init__( |
| 243 | resource, |
| 244 | "install", |
| 245 | "Install new %s." % resource.get_plural_display_name().lower(), |
| 246 | *args, |
| 247 | **kwargs, |
| 248 | ) |
| 249 | |
| 250 | self.parser.add_argument( |
| 251 | "packs", |
| 252 | nargs="+", |
| 253 | metavar="pack", |
| 254 | help="Name of the %s in Exchange, or a git repo URL." |
| 255 | % resource.get_plural_display_name().lower(), |
| 256 | ) |
| 257 | self.parser.add_argument( |
| 258 | "--force", |
| 259 | action="store_true", |
| 260 | default=False, |
| 261 | help="Force pack installation.", |
| 262 | ) |
| 263 | self.parser.add_argument( |
| 264 | "--skip-dependencies", |
| 265 | action="store_true", |
| 266 | default=False, |
| 267 | help="Skip pack dependency installation.", |
| 268 | ) |
| 269 | |
| 270 | def run(self, args, **kwargs): |
| 271 | is_structured_output = args.json or args.yaml |
nothing calls this directly
no test coverage detected