refactor for separation of concern for better readabiliy and maintainability

This commit is contained in:
Robin Olsen
2026-03-03 11:41:07 +01:00
parent e8d9f9d1b6
commit 763f079063
11 changed files with 530 additions and 471 deletions

View File

@@ -16,11 +16,9 @@ type InteractiveInitializer struct{}
func (i InteractiveInitializer) Init(path string) error {
_, err := os.Stat(path)
if err == nil {
// Path exists; assume already initialized.
return nil
}
if !os.IsNotExist(err) {
// Some other filesystem error; propagate it to the caller.
return err
}