Skip to content

Commit

Permalink
fix config variables and ignored files
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Sanchez <rodolfo2488@gmail.com>
  • Loading branch information
dolfolife committed Feb 21, 2024
1 parent ccba90e commit 2011ae3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode
dist/
coverage*
.env
aoctl
4 changes: 2 additions & 2 deletions cmd/aoctl/puzzle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/aoc/aoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ AOC_SESSION=<insert-advent-of-code-session>

defer roFile.Close()
roFile.WriteString(`
# Advent of Code
# Advent of Code
`)

gitIgnoreFile := filepath.Join(path, ".gitignore")
Expand All @@ -58,7 +58,7 @@ AOC_SESSION=<insert-advent-of-code-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
}
Expand Down

0 comments on commit 2011ae3

Please sign in to comment.