mirror of
https://github.com/restic/restic.git
synced 2026-06-17 14:14:19 +00:00
pass global context through cobra
This commit is contained in:
@@ -35,7 +35,7 @@ Exit status is 0 if the command was successful, and non-zero if there was any er
|
||||
`,
|
||||
DisableAutoGenTag: true,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runDiff(globalCtx(), diffOptions, globalOptions, args)
|
||||
return runDiff(cmd.Context(), diffOptions, globalOptions, args)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user