mirror of
https://github.com/restic/restic.git
synced 2026-09-22 20:18:32 +00:00
pass global context through cobra
This commit is contained in:
@@ -20,7 +20,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 runUnlock(globalCtx(), unlockOptions, globalOptions)
|
||||
return runUnlock(cmd.Context(), unlockOptions, globalOptions)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user