Skip to content

Commit

Permalink
Merge pull request #47 from c3pm-labs/no-init
Browse files Browse the repository at this point in the history
feat: Handle --no-template flag with init
  • Loading branch information
gabrielcolson authored Apr 18, 2021
2 parents 4f4f699 + c9d6a94 commit 54e6ba5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.coverprofile
.idea/
.coverage
.coverage
.vscode
11 changes: 6 additions & 5 deletions ctpm/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit 54e6ba5

Please sign in to comment.