MCPcopy
hub / github.com/cli/cli / scopesSentence

Function scopesSentence

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

Source from the content-addressed store, hash-verified

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