(svc appServices, parent commandParent)
| 11 | } |
| 12 | |
| 13 | func (c *commandServerUpload) setup(svc appServices, parent commandParent) { |
| 14 | cmd := parent.Command("snapshot", "Trigger upload for one or more existing sources").Alias("upload") |
| 15 | |
| 16 | c.commandServerSourceManagerAction.setup(svc, cmd) |
| 17 | cmd.Action(svc.serverAction(&c.sf, c.run)) |
| 18 | } |
| 19 | |
| 20 | func (c *commandServerUpload) run(ctx context.Context, cli *apiclient.KopiaAPIClient) error { |
| 21 | return c.triggerActionOnMatchingSources(ctx, cli, "control/trigger-snapshot") |
nothing calls this directly
no test coverage detected