Fix init (#39)

* add dockerfile for development

* fix init command

* update test
pull/40/head
Marcus Kok 1 year ago committed by GitHub
parent 6aadf9c901
commit 8529c6cdac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -67,7 +67,7 @@ func runInitCommand(cmd *cobra.Command, args []string) {
log.Fatalf("Unable to create dotfile structure: %s", error.Error(err)) 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 { if err != nil {
panic(fmt.Errorf("Unable to create config file %w", err)) panic(fmt.Errorf("Unable to create config file %w", err))
} }

@ -27,7 +27,7 @@ func TestInitCommand(t *testing.T) {
homedir := os.Getenv("HOME") 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 { if err != nil {
t.Error(err.Error()) t.Error(err.Error())
} }

Loading…
Cancel
Save