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

Function stubCommand

internal/cli/cli.go:278–288  ·  view source on GitHub ↗
(name, usage string, stdout io.Writer)

Source from the content-addressed store, hash-verified

276 Name: name,
277 Usage: usage,
278 Flags: []ucli.Flag{ucli.StringFlag{Name: "name", Usage: "repo name (required)"}},
279 Action: withService(ctx, root, stderr, func(c *ucli.Context, svc *daemon.Service) error {
280 n := strings.TrimSpace(c.String("name"))
281 if n == "" {
282 return fmt.Errorf("--name required")
283 }
284 return fn(ctx, svc, n, stdout)
285 }),
286 }
287}
288
289func formatStatusLine(st model.RepoRuntimeState) string {
290 requiredCommit := st.RequiredCommit
291 if requiredCommit == "" {

Callers 1

RunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected