MCPcopy Index your code
hub / github.com/coder/coder / humanizeLicenses

Function humanizeLicenses

cli/support.go:664–672  ·  view source on GitHub ↗
(licenses []codersdk.License)

Source from the content-addressed store, hash-verified

662}
663
664func humanizeLicenses(licenses []codersdk.License) (string, error) {
665 formatter := cliutil.NewLicenseFormatter()
666
667 if len(licenses) == 0 {
668 return "No licenses found", nil
669 }
670
671 return formatter.Format(context.Background(), licenses)
672}

Callers 1

writeBundleFunction · 0.85

Calls 2

NewLicenseFormatterFunction · 0.92
FormatMethod · 0.65

Tested by

no test coverage detected