MCPcopy Create free account
hub / github.com/bare-cli/bare / getLicense

Function getLicense

utils/git/license.go:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func getLicense() string {
39 req_url := "https://raw.githubusercontent.com/bare-cli/license/main/LICENSE"
40 resp, err := http.Get(req_url)
41 if err != nil {
42 log.Fatal(err)
43 }
44 body, err := ioutil.ReadAll(resp.Body)
45
46 if err != nil {
47 log.Fatal(err)
48 }
49 return string(body)
50}
51
52func executeLicense() {
53

Callers 1

AddLicenseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected