pass global context through cobra

This commit is contained in:
Michael Eischer
2022-10-02 23:24:37 +02:00
parent 49126796d0
commit 6d2d297215
26 changed files with 26 additions and 30 deletions
+1 -1
View File
@@ -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)
},
}