From 66c84ef360b51cb0496e480bf5dcc14e4a519c83 Mon Sep 17 00:00:00 2001 From: angela-boyadjian Date: Sat, 17 Apr 2021 19:52:48 +0200 Subject: [PATCH 1/2] feat: edit .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 33bb33a..b29219f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.coverprofile .idea/ -.coverage \ No newline at end of file +.coverage +.vscode \ No newline at end of file From c9d6a94a0bf172fe555c8e4f87ad8370e8271f0d Mon Sep 17 00:00:00 2001 From: angela-boyadjian Date: Sun, 18 Apr 2021 13:31:36 +0200 Subject: [PATCH 2/2] feat: handle --no-template flag --- ctpm/init.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ctpm/init.go b/ctpm/init.go index 49deb95..efc2b2b 100644 --- a/ctpm/init.go +++ b/ctpm/init.go @@ -2,12 +2,13 @@ package ctpm import ( "fmt" - "github.com/mitchellh/go-spdx" "io/ioutil" "os" "path/filepath" "text/template" + "github.com/mitchellh/go-spdx" + "github.com/c3pm-labs/c3pm/config" ) @@ -46,12 +47,12 @@ func Init(pc *config.ProjectConfig, opt InitOptions) error { return err } } + err = Build(pc) + if err != nil { + return err + } } - err = Build(pc) - if err != nil { - return err - } return pc.Save() }