(ctx context.Context)
| 20 | } |
| 21 | |
| 22 | func (c *commandRepositoryDisconnect) run(ctx context.Context) error { |
| 23 | c.svc.removeUpdateState() |
| 24 | |
| 25 | if err := repo.Disconnect(ctx, c.svc.repositoryConfigFileName()); err != nil { |
| 26 | return errors.Wrap(err, "unable to disconnect from repository") |
| 27 | } |
| 28 | |
| 29 | if err := c.svc.passwordPersistenceStrategy().DeletePassword(ctx, c.svc.repositoryConfigFileName()); err != nil { |
| 30 | return errors.Wrap(err, "unable to remove persisted password") |
| 31 | } |
| 32 | |
| 33 | return nil |
| 34 | } |
nothing calls this directly
no test coverage detected