From 8529c6cdac95bfad1f4bc626c8de3de09aec0407 Mon Sep 17 00:00:00 2001 From: Marcus Kok <47163063+Marcusk19@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:19:47 -0400 Subject: [PATCH] Fix init (#39) * add dockerfile for development * fix init command * update test --- cmd/init.go | 2 +- test/init_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 3417bf9..7b0a059 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -67,7 +67,7 @@ func runInitCommand(cmd *cobra.Command, args []string) { log.Fatalf("Unable to create dotfile structure: %s", error.Error(err)) } - _, err = fs.Create(path.Join(DotfilePath, "dotctl/config")) + _, err = fs.Create(path.Join(DotfilePath, "dotctl/config.yml")) if err != nil { panic(fmt.Errorf("Unable to create config file %w", err)) } diff --git a/test/init_test.go b/test/init_test.go index 414e3eb..b7ff657 100644 --- a/test/init_test.go +++ b/test/init_test.go @@ -27,7 +27,7 @@ func TestInitCommand(t *testing.T) { homedir := os.Getenv("HOME") - _, err := afero.ReadFile(fs, filepath.Join(homedir, "dotfiles/dotctl/config")) + _, err := afero.ReadFile(fs, filepath.Join(homedir, "dotfiles/dotctl/config.yml")) if err != nil { t.Error(err.Error()) }