Files
kopia/cli/command_repository.go
Jarek Kowalski 8a4ac4dec3 Upgraded linter to 1.43.0 (#1505)
* 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
2021-11-11 17:03:11 -08:00

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)
}