MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_notification_profile_send.go:18–24  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

16}
17
18func (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
26func (c *commandNotificationProfileTest) run(ctx context.Context, rep repo.Repository) error {
27 p, err := notifyprofile.GetProfile(ctx, rep, c.profileName)

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected