command.ExecuteContext(context.Background()) should create the context, and it should be retrievable with command.Context().
Actual Behavior
Currently the NewSyncCMD function runs init() and run() and after that the sync command is executed, therefore we cannot use command.ExecuteContext(context.Background()) to create a context, and then use it elsewhere with command.Context().
Preflight Checklist
Version
v0.1.3
Expected Behavior
command.ExecuteContext(context.Background())
should create the context, and it should be retrievable withcommand.Context()
.Actual Behavior
Currently the
NewSyncCMD
function runsinit()
andrun()
and after that the sync command is executed, therefore we cannot usecommand.ExecuteContext(context.Background())
to create a context, and then use it elsewhere withcommand.Context()
.Steps To Reproduce
No response
Logs
No response
Additional Information
No response