diff options
| author | Fuwn <[email protected]> | 2024-11-26 04:17:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-26 04:17:55 +0000 |
| commit | 73339dda053213ee25d1be7cd699ba077bf9bc78 (patch) | |
| tree | da202c119aa967ebd4040121375c17ba3f1138a7 /internal | |
| parent | chore(flake): bump nixpkgs (diff) | |
| download | yae-73339dda053213ee25d1be7cd699ba077bf9bc78.tar.xz yae-73339dda053213ee25d1be7cd699ba077bf9bc78.zip | |
fix(init): initialise base empty environment on init command
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/commands/init.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/commands/init.go b/internal/commands/init.go index c4bc138..94433ab 100644 --- a/internal/commands/init.go +++ b/internal/commands/init.go @@ -14,6 +14,9 @@ func Init(sources *yae.Environment) func(c *cli.Context) error { return fmt.Errorf("sources file already exists") } + sources.Sources = make(map[string]yae.Source) + sources.Schema = "https://raw.githubusercontent.com/Fuwn/yae/refs/heads/main/yae.schema.json" + if c.Bool("dry-run") { return nil } |