MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / defaultRoot

Function defaultRoot

internal/cli/cli.go:210–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 },
209 {
210 Name: "set-refresh",
211 Usage: "update refresh interval",
212 Flags: []ucli.Flag{
213 ucli.StringFlag{Name: "name", Usage: "repo name (required)"},
214 ucli.StringFlag{Name: "interval", Usage: "refresh interval (required)"},
215 },
216 Action: withService(ctx, root, stderr, func(c *ucli.Context, svc *daemon.Service) error {
217 name := strings.TrimSpace(c.String("name"))
218 interval := strings.TrimSpace(c.String("interval"))
219 if name == "" || interval == "" {
220 return fmt.Errorf("--name and --interval required")

Callers 1

RunFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected