MCPcopy Create free account
hub / github.com/cli/cli / scopesSentence

Function scopesSentence

pkg/cmd/auth/shared/login_flow.go:235–241  ·  view source on GitHub ↗
(scopes []string)

Source from the content-addressed store, hash-verified

233}
234
235func scopesSentence(scopes []string) string {
236 quoted := make([]string, len(scopes))
237 for i, s := range scopes {
238 quoted[i] = fmt.Sprintf("'%s'", s)
239 }
240 return strings.Join(quoted, ", ")
241}
242
243func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) {
244 f, err := os.Open(keyFile)

Callers 2

LoginFunction · 0.85
Test_scopesSentenceFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by 1

Test_scopesSentenceFunction · 0.68