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

Function scopesSentence

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

Source from the content-addressed store, hash-verified

229}
230
231func scopesSentence(scopes []string) string {
232 quoted := make([]string, len(scopes))
233 for i, s := range scopes {
234 quoted[i] = fmt.Sprintf("'%s'", s)
235 }
236 return strings.Join(quoted, ", ")
237}
238
239func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) {
240 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