mirror of
https://github.com/restic/restic.git
synced 2026-10-05 10:20:30 +00:00
pass global context through cobra
This commit is contained in:
@@ -32,7 +32,7 @@ This can be mitigated by the "--copy-chunker-params" option when initializing a
|
||||
new destination repository using the "init" command.
|
||||
`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return runCopy(globalCtx(), copyOptions, globalOptions, args)
|
||||
return runCopy(cmd.Context(), copyOptions, globalOptions, args)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user