fix: fix config saving

This commit is contained in:
2025-02-28 21:14:59 +03:00
parent 29c1a31066
commit 71968bbe13
2 changed files with 5 additions and 1 deletions

View File

@ -193,3 +193,7 @@ func (c *ALRConfig) RootCmd(ctx context.Context) string {
})
return c.cfg.RootCmd
}
func (c *ALRConfig) Save(f *os.File) error {
return toml.NewEncoder(f).Encode(c.cfg)
}