fix(image): init writer before usage

resolves #3326
This commit is contained in:
Jan De Dobbeleer 2023-01-08 10:21:00 +01:00 committed by Jan De Dobbeleer
parent cd4ca2bdf4
commit d4ebc71f9c

View file

@ -62,6 +62,7 @@ Exports the config to an image file using customized output options.`,
TerminalBackground: shell.ConsoleBackgroundColor(env, cfg.TerminalBackground),
AnsiColors: writerColors,
}
writer.Init(shell.GENERIC)
eng := &engine.Engine{
Config: cfg,
Env: env,