(ctx context.Context, rep repo.Repository)
| 24 | } |
| 25 | |
| 26 | func (c *commandServerUserInfo) run(ctx context.Context, rep repo.Repository) error { |
| 27 | up, err := user.GetUserProfile(ctx, rep, c.name) |
| 28 | if err != nil { |
| 29 | return errors.Wrap(err, "error getting user profile") |
| 30 | } |
| 31 | |
| 32 | j, err := json.MarshalIndent(up, "", " ") |
| 33 | if err != nil { |
| 34 | return errors.Wrap(err, "error marshaling JSON") |
| 35 | } |
| 36 | |
| 37 | c.out.printStdout("%s", j) |
| 38 | |
| 39 | return nil |
| 40 | } |
nothing calls this directly
no test coverage detected