Skip to content

Commit

Permalink
fix(image): initialize image correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 4, 2024
1 parent bb22204 commit 0b76bea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/config_export_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Exports the config to an image file using customized output options.`,

env.Init()
defer env.Close()

template.Init(env)

cfg := config.Load(env)

// set sane defaults for things we don't print
Expand All @@ -73,8 +76,6 @@ Exports the config to an image file using customized output options.`,
terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate()
terminal.Colors = cfg.MakeColors()

template.Init(env)

eng := &prompt.Engine{
Config: cfg,
Env: env,
Expand Down

0 comments on commit 0b76bea

Please sign in to comment.