Skip to content

Commit

Permalink
Merge pull request #5 from hacktivist123/fix-usage-error
Browse files Browse the repository at this point in the history
Fix usage error and add .env files to gitignore
  • Loading branch information
hacktivist123 committed Aug 4, 2023
2 parents 2dcd778 + b0691fe commit 820d1af
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/goignore/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func main() {
}

func readTemplateFile(language string) (string, error) {
templatePath := fmt.Sprintf("templates/%s.txt", language)
templatePath := fmt.Sprintf("./templates/%s.txt", language)
content, err := os.ReadFile(templatePath)
if err != nil {
return "", err
Expand Down
4 changes: 4 additions & 0 deletions cmd/goignore/templates/c++.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ profile
# Windows specific files
Thumbs.db
Desktop.ini

# env
.env
.env.local
3 changes: 3 additions & 0 deletions cmd/goignore/templates/golang.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
# Dependency directories (remove the comment below to include it)
# vendor/

# env
.env
.env.local
3 changes: 2 additions & 1 deletion cmd/goignore/templates/javascript.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
/dist

# misc
env*.local
.env
.env.local
/.cache
/log
*.log
Expand Down
3 changes: 3 additions & 0 deletions cmd/goignore/templates/python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ celerybeat-schedule

# SageMath parsed files
*.
# env
.env
.env.local

0 comments on commit 820d1af

Please sign in to comment.