MCPcopy Create free account
hub / github.com/anchordotdev/cli / UserInfo

Method UserInfo

api/api.go:277–286  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

275}
276
277func (s *Session) UserInfo(ctx context.Context) (*Root, error) {
278 if s.userInfo != nil {
279 return s.userInfo, nil
280 }
281
282 if err := s.get(ctx, "", &s.userInfo); err != nil {
283 return nil, err
284 }
285 return s.userInfo, nil
286}
287
288func (s *Session) GenerateUserFlowCodes(ctx context.Context, source string) (*AuthCliCodesResponse, error) {
289 var codes AuthCliCodesResponse

Callers 9

NewClientFunction · 0.95
FetchLocalDevCAsFunction · 0.80
TestAuditFunction · 0.80
RunTUIMethod · 0.80
PerformMethod · 0.80
systemConfigMethod · 0.80
personalOrgAPIDMethod · 0.80
personalOrgAPIDMethod · 0.80
PerformMethod · 0.80

Calls 1

getMethod · 0.95

Tested by 1

TestAuditFunction · 0.64