Create a command that calls the given function.
(func)
| 196 | |
| 197 | |
| 198 | def command_for_func(func): |
| 199 | """Create a command that calls the given function.""" |
| 200 | |
| 201 | class FuncCommand(BaseCommand): |
| 202 | |
| 203 | def run(self): |
| 204 | func() |
| 205 | update_package_data(self.distribution) |
| 206 | |
| 207 | return FuncCommand |
| 208 | |
| 209 | |
| 210 | def run(cmd, **kwargs): |
nothing calls this directly
no outgoing calls
no test coverage detected