Skip to content

Commit

Permalink
Write a gitignore when initializing a project (#55)
Browse files Browse the repository at this point in the history
* Bump version to 1.1.2
  • Loading branch information
aburgel authored Apr 17, 2020
1 parent 4115135 commit 4af99b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL = /bin/sh

VERSION=1.1.1
VERSION=1.1.2
BUILD=`git rev-parse HEAD`

LDFLAGS=-ldflags "-w -s \
Expand Down
5 changes: 5 additions & 0 deletions cmds/init_project.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmds

import (
"io/ioutil"
"log"
"os"

Expand Down Expand Up @@ -39,6 +40,10 @@ func initProject() error {
}
keepfile.Close()

if err := ioutil.WriteFile("testtrack/.gitignore", []byte("build_timestamp\n"), 0644); err != nil {
log.Fatal(err)
}

_, err = schema.Generate()
return err
}

0 comments on commit 4af99b6

Please sign in to comment.