(svc appServices, parent commandParent)
| 13 | } |
| 14 | |
| 15 | func (c *commandRepositoryThrottleGet) setup(svc appServices, parent commandParent) { |
| 16 | cmd := parent.Command("get", "Get throttling parameters for a repository") |
| 17 | c.ctg.setup(svc, cmd) |
| 18 | |
| 19 | cmd.Action(svc.directRepositoryReadAction(c.run)) |
| 20 | } |
| 21 | |
| 22 | func (c *commandRepositoryThrottleGet) run(_ context.Context, rep repo.DirectRepository) error { |
| 23 | limits := rep.Throttler().Limits() |
nothing calls this directly
no test coverage detected