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

Function scopesSentence

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

Source from the content-addressed store, hash-verified

326}
327
328func scopesSentence(scopes []string) string {
329 quoted := make([]string, len(scopes))
330 for i, s := range scopes {
331 quoted[i] = fmt.Sprintf("'%s'", s)
332 }
333 return strings.Join(quoted, ", ")
334}
335
336func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) {
337 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