diff options
| author | Fuwn <[email protected]> | 2024-11-25 20:17:55 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-25 20:17:55 -0800 |
| commit | 6fd049f7a0636a406d9a7405825046c1928fa8ab (patch) | |
| tree | da202c119aa967ebd4040121375c17ba3f1138a7 /internal | |
| parent | 6a9332486176cb7c70208facc6ab59c4880e825f (diff) | |
| download | yae-6fd049f7a0636a406d9a7405825046c1928fa8ab.tar.xz yae-6fd049f7a0636a406d9a7405825046c1928fa8ab.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 } |