From 2b72f3eb4214df0b4823fb2287128c0a10cc2786 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 16 May 2026 11:39:53 +0200 Subject: [PATCH] find: fix placement of exit status section --- cmd/restic/cmd_find.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/cmd/restic/cmd_find.go b/cmd/restic/cmd_find.go index 851407292..6f7a6396a 100644 --- a/cmd/restic/cmd_find.go +++ b/cmd/restic/cmd_find.go @@ -33,16 +33,11 @@ func newFindCommand(globalOptions *global.Options) *cobra.Command { Short: "Find a file, a directory or restic IDs", Long: ` The "find" command searches for files or directories in snapshots stored in the -repo. -It can also be used to search for restic blobs or trees for troubleshooting. +repository. It can also be used to search for restic blobs, trees or pack +files for troubleshooting. + The default sort option for the snapshots is youngest to oldest. To sort the -output from oldest to youngest specify --reverse.`, - Example: `restic find config.json -restic find --json "*.yml" "*.json" -restic find --json --blob 420f620f b46ebe8a ddd38656 -restic find --show-pack-id --blob 420f620f -restic find --tree 577c2bc9 f81f2e22 a62827a9 -restic find --pack 025c1d06 +output from oldest to youngest specify --reverse. EXIT STATUS =========== @@ -53,6 +48,12 @@ Exit status is 10 if the repository does not exist. Exit status is 11 if the repository is already locked. Exit status is 12 if the password is incorrect. `, + Example: `restic find config.json +restic find --json "*.yml" "*.json" +restic find --json --blob 420f620f b46ebe8a ddd38656 +restic find --show-pack-id --blob 420f620f +restic find --tree 577c2bc9 f81f2e22 a62827a9 +restic find --pack 025c1d06`, GroupID: cmdGroupDefault, DisableAutoGenTag: true, RunE: func(cmd *cobra.Command, args []string) error {