diff --git a/.gitignore b/.gitignore index 05d8ee5..678af4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .vscode dist/ coverage* +.env +aoctl diff --git a/cmd/aoctl/puzzle.go b/cmd/aoctl/puzzle.go index a21aa48..59c4d42 100644 --- a/cmd/aoctl/puzzle.go +++ b/cmd/aoctl/puzzle.go @@ -35,9 +35,9 @@ var puzzleCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { day := cmd.Flags().Lookup("day").Value.String() year := cmd.Flags().Lookup("year").Value.String() + puzzles := aoc.GetPuzzles(day, year) - fmt.Println(puzzles[0]) - fmt.Println(puzzles[1]) + fmt.Println(puzzles) }, } diff --git a/pkg/aoc/aoc.go b/pkg/aoc/aoc.go index ab299f4..940cc2d 100644 --- a/pkg/aoc/aoc.go +++ b/pkg/aoc/aoc.go @@ -45,7 +45,7 @@ AOC_SESSION= defer roFile.Close() roFile.WriteString(` - # Advent of Code +# Advent of Code `) gitIgnoreFile := filepath.Join(path, ".gitignore") @@ -58,7 +58,7 @@ AOC_SESSION= if _, err = roFile.WriteString(` # Advent of Code use the .aoc file for storing session information which you should # not track in source control. -.aoc +.env `); err != nil { return err }