Lines Matching refs:gopts
100 func runForget(opts ForgetOptions, gopts GlobalOptions, args []string) error {
106 repo, err := OpenRepository(gopts)
111 lock, err := lockRepoExclusive(gopts.ctx, repo)
117 ctx, cancel := context.WithCancel(gopts.ctx)
157 if !gopts.JSON {
163 if !gopts.JSON {
168 if gopts.Verbose >= 1 && !gopts.JSON {
169 err = PrintSnapshotGroupHeader(gopts.stdout, k)
187 if len(keep) != 0 && !gopts.Quiet && !gopts.JSON {
194 if len(remove) != 0 && !gopts.Quiet && !gopts.JSON {
214 err := DeleteFilesChecked(gopts, repo, removeSnIDs, restic.SnapshotFile)
219 if !gopts.JSON {
225 if gopts.JSON && len(jsonGroups) > 0 {
226 err = printJSONForget(gopts.stdout, jsonGroups)
233 if !gopts.JSON {
237 return runPruneWithRepo(pruneOptions, gopts, repo, removeSnIDs)