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

Function formatPrepareError

internal/cli/cli.go:271–276  ·  view source on GitHub ↗
(err string)

Source from the content-addressed store, hash-verified

269 return fn(c, svc)
270 }
271}
272
273// nameCommand builds a subcommand that takes a --name flag and runs fn.
274func nameCommand(name, usage string, ctx context.Context, root string, stderr io.Writer, stdout io.Writer, fn func(context.Context, *daemon.Service, string, io.Writer) error) ucli.Command {
275 return ucli.Command{
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 {

Callers 1

formatStatusLineFunction · 0.85

Calls 2

RedactStringFunction · 0.92
JoinMethod · 0.80

Tested by

no test coverage detected