(self, description, app, subparsers, parent_parser=None)
| 55 | |
| 56 | class PackBranch(resource.ResourceBranch): |
| 57 | def __init__(self, description, app, subparsers, parent_parser=None): |
| 58 | super(PackBranch, self).__init__( |
| 59 | Pack, |
| 60 | description, |
| 61 | app, |
| 62 | subparsers, |
| 63 | parent_parser=parent_parser, |
| 64 | read_only=True, |
| 65 | commands={"list": PackListCommand, "get": PackGetCommand}, |
| 66 | ) |
| 67 | |
| 68 | self.commands["show"] = PackShowCommand( |
| 69 | self.resource, self.app, self.subparsers |
| 70 | ) |
| 71 | self.commands["search"] = PackSearchCommand( |
| 72 | self.resource, self.app, self.subparsers |
| 73 | ) |
| 74 | self.commands["install"] = PackInstallCommand( |
| 75 | self.resource, self.app, self.subparsers |
| 76 | ) |
| 77 | self.commands["remove"] = PackRemoveCommand( |
| 78 | self.resource, self.app, self.subparsers |
| 79 | ) |
| 80 | self.commands["register"] = PackRegisterCommand( |
| 81 | self.resource, self.app, self.subparsers |
| 82 | ) |
| 83 | self.commands["config"] = PackConfigCommand( |
| 84 | self.resource, self.app, self.subparsers |
| 85 | ) |
| 86 | |
| 87 | |
| 88 | class PackResourceCommand(resource.ResourceCommand): |
no test coverage detected