(svc appServices, parent commandParent)
| 16 | } |
| 17 | |
| 18 | func (c *commandNotificationProfileTest) setup(svc appServices, parent commandParent) { |
| 19 | cmd := parent.Command("test", "Send test notification").Alias("send-test-message") |
| 20 | |
| 21 | c.notificationProfileFlag.setup(svc, cmd) |
| 22 | |
| 23 | cmd.Action(svc.repositoryReaderAction(c.run)) |
| 24 | } |
| 25 | |
| 26 | func (c *commandNotificationProfileTest) run(ctx context.Context, rep repo.Repository) error { |
| 27 | p, err := notifyprofile.GetProfile(ctx, rep, c.profileName) |
nothing calls this directly
no test coverage detected