Skip to content

Commit

Permalink
delete images dir on new
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Jan 11, 2022
1 parent 9066e94 commit 28661cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/controller/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
DefaultTemplate = PingTemplate
LicenseFile = "LICENSE"
ReadmeFile = "README.md"
ImagesDir = "images"
)

type NewArgs struct {
Expand Down Expand Up @@ -75,9 +76,7 @@ func createProject(name, from, moduleName string) error {
if !isExternalRepo(from) {
os.Remove(filepath.Join(projectPath, LicenseFile))
os.Remove(filepath.Join(projectPath, ReadmeFile))
if from == ExcusesTemplate {
os.Remove(filepath.Join(projectPath, "excuses.png"))
}
os.RemoveAll(filepath.Join(projectPath, ImagesDir))
}

fs, err := newStore()
Expand Down

0 comments on commit 28661cc

Please sign in to comment.