Capture context from cobra CLI and pass forward (#2551)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -137,7 +137,7 @@ func (opts *DumpSubCommand) do(input cli.Input) error {
|
||||
wg.Add(1)
|
||||
go func(res resources.Resource, dir string) {
|
||||
defer wg.Done()
|
||||
res.Dump(dir)
|
||||
res.Dump(input.Context(), dir)
|
||||
}(res, dir)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user