App contains per-invocation flags and state of Kopia CLI.
| 120 | |
| 121 | // App contains per-invocation flags and state of Kopia CLI. |
| 122 | type App struct { |
| 123 | // global flags |
| 124 | enableAutomaticMaintenance bool |
| 125 | progress *cliProgress |
| 126 | restoreProgress RestoreProgress |
| 127 | initialUpdateCheckDelay time.Duration |
| 128 | updateCheckInterval time.Duration |
| 129 | updateAvailableNotifyInterval time.Duration |
| 130 | password string |
| 131 | configPath string |
| 132 | traceStorage bool |
| 133 | keyRingEnabled bool |
| 134 | persistCredentials bool |
| 135 | disableRepositoryLog bool |
| 136 | DangerousCommands string |
| 137 | cliStorageProviders []StorageProvider |
| 138 | trackReleasable []string |
| 139 | |
| 140 | observability observabilityFlags |
| 141 | upgradeOwnerID string |
| 142 | doNotWaitForUpgrade bool |
| 143 | |
| 144 | errorNotifications string |
| 145 | |
| 146 | currentAction string |
| 147 | onExitCallbacks []func() |
| 148 | onFatalErrorCallbacks []func(err error) |
| 149 | |
| 150 | // subcommands |
| 151 | blob commandBlob |
| 152 | benchmark commandBenchmark |
| 153 | cache commandCache |
| 154 | content commandContent |
| 155 | diff commandDiff |
| 156 | index commandIndex |
| 157 | list commandList |
| 158 | server commandServer |
| 159 | session commandSession |
| 160 | policy commandPolicy |
| 161 | restore commandRestore |
| 162 | show commandShow |
| 163 | snapshot commandSnapshot |
| 164 | manifest commandManifest |
| 165 | mount commandMount |
| 166 | maintenance commandMaintenance |
| 167 | repository commandRepository |
| 168 | logs commandLogs |
| 169 | notification commandNotification |
| 170 | |
| 171 | // testability hooks |
| 172 | testonlyIgnoreMissingRequiredFeatures bool |
| 173 | |
| 174 | isInProcessTest bool |
| 175 | exitWithError func(err error) // os.Exit() with 1 or 0 based on err |
| 176 | stdinReader io.Reader |
| 177 | stdoutWriter io.Writer |
| 178 | stderrWriter io.Writer |
| 179 | rootctx context.Context //nolint:containedctx |
nothing calls this directly
no outgoing calls
no test coverage detected