MCPcopy Index your code
hub / github.com/rilldata/rill / Set

Method Set

cli/pkg/printer/printer.go:41–55  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

39}
40
41func (f *Format) Set(s string) error {
42 var v Format
43 switch s {
44 case "human":
45 v = FormatHuman
46 case "json":
47 v = FormatJSON
48 case "csv":
49 v = FormatCSV
50 default:
51 return fmt.Errorf("failed to parse Format: %q. Valid values: %+v", s, []string{"human", "json", "csv"})
52 }
53 *f = v
54 return nil
55}
56
57var (
58 ColorBold = color.New(color.Bold)

Callers 15

fetchLatestVersionFunction · 0.45
GetAuthURLMethod · 0.45
tokenRequestFunction · 0.45
traceHandlerMethod · 0.45
UploadLogoCmdFunction · 0.45
UploadFaviconCmdFunction · 0.45
UploadThumbnailCmdFunction · 0.45
GetUsageMetricsMethod · 0.45
WithQueryFunction · 0.45
HTTPHandlerMethod · 0.45

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected