(ctx context.Context, co *connectOptions, st blob.Storage, password string)
| 124 | } |
| 125 | |
| 126 | func (c *App) runConnectCommandWithStorageAndPassword(ctx context.Context, co *connectOptions, st blob.Storage, password string) error { |
| 127 | configFile := c.repositoryConfigFileName() |
| 128 | if err := passwordpersist.OnSuccess( |
| 129 | ctx, repo.Connect(ctx, configFile, st, password, co.toRepoConnectOptions()), |
| 130 | c.passwordPersistenceStrategy(), configFile, password); err != nil { |
| 131 | return errors.Wrap(err, "error connecting to repository") |
| 132 | } |
| 133 | |
| 134 | log(ctx).Info("Connected to repository.") |
| 135 | c.maybeInitializeUpdateCheck(ctx, co) |
| 136 | |
| 137 | return nil |
| 138 | } |
no test coverage detected