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

Function login

pkg/cmd/issue/artifact/view/view.go:329–334  ·  view source on GitHub ↗

login returns a user's login, or an empty string for a null user.

(u *client.Actor)

Source from the content-addressed store, hash-verified

327
328// login returns a user's login, or an empty string for a null user.
329func login(u *client.Actor) string {
330 if u == nil {
331 return ""
332 }
333 return u.Login
334}
335
336// timestamp returns t in RFC 3339 format, or an empty string for a null time.
337func timestamp(t *time.Time) string {

Callers 2

printRawArtifactFunction · 0.70
printEditHistoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected