mirror of
https://github.com/kopia/kopia.git
synced 2026-01-25 06:48:48 -05:00
* fixed new gocritic violations * fixed new 'contextcheck' violations * fixed 'gosec' warnings * suppressed ireturn and varnamelen linters * fixed tenv violations, enabled building robustness tests on arm64 * fixed remaining linux failures * makefile: fixed 'lint-all' target when running on arm64 * linter: increase deadline * disable nilnil linter - to be enabled in separate PR
30 lines
1.0 KiB
Go
30 lines
1.0 KiB
Go
package cli
|
|
|
|
type commandRepository struct {
|
|
connect commandRepositoryConnect
|
|
create commandRepositoryCreate
|
|
disconnect commandRepositoryDisconnect
|
|
repair commandRepositoryRepair
|
|
setClient commandRepositorySetClient
|
|
setParameters commandRepositorySetParameters
|
|
changePassword commandRepositoryChangePassword
|
|
status commandRepositoryStatus
|
|
syncTo commandRepositorySyncTo
|
|
validateProvider commandRepositoryValidateProvider
|
|
}
|
|
|
|
func (c *commandRepository) setup(svc advancedAppServices, parent commandParent) {
|
|
cmd := parent.Command("repository", "Commands to manipulate repository.").Alias("repo")
|
|
|
|
c.connect.setup(svc, cmd) // nolint:contextcheck
|
|
c.create.setup(svc, cmd) // nolint:contextcheck
|
|
c.disconnect.setup(svc, cmd)
|
|
c.repair.setup(svc, cmd) // nolint:contextcheck
|
|
c.setClient.setup(svc, cmd)
|
|
c.setParameters.setup(svc, cmd)
|
|
c.status.setup(svc, cmd)
|
|
c.syncTo.setup(svc, cmd) // nolint:contextcheck
|
|
c.changePassword.setup(svc, cmd)
|
|
c.validateProvider.setup(svc, cmd)
|
|
}
|