Skip to content

Commit

Permalink
✨ Add gut ignore ls | Gitignore update
Browse files Browse the repository at this point in the history
Gitignore now has a key for .gut
  • Loading branch information
julien040 committed Dec 31, 2022
1 parent 87eba8f commit be89dcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ test/

# MacOS
.DS_Store

.gut
10 changes: 9 additions & 1 deletion src/controller/ignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controller

import (
"encoding/json"
"fmt"
"io"
"net/http"
"os"
Expand Down Expand Up @@ -193,5 +194,12 @@ func Ignore(cmd *cobra.Command, args []string) {

// Cmd to list all available gitignore templates
func IgnoreList(cmd *cobra.Command, args []string) {
// TODO
templates, err := fetchIgnoreList()
if err != nil {
exitOnError("Sorry, I couldn't fetch the list of available gitignore templates 😓", err)
}
print.Message("Available gitignore templates:", print.Info)
temp := selectGitignoreTemplate(templates)
print.Message("Here's the content of the "+temp.name+" template:", print.Info)
fmt.Println(temp.contents)
}

0 comments on commit be89dcd

Please sign in to comment.