-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Ilyes512/feature/fix-goreportcard-reports
Feature/fix goreportcard reports
- Loading branch information
Showing
14 changed files
with
36 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/Ilyes512/boilr/pkg/boilr" | ||
"github.com/Ilyes512/boilr/pkg/cmd" | ||
"github.com/Ilyes512/boilr/pkg/util/exit" | ||
"github.com/Ilyes512/boilr/pkg/util/osutil" | ||
"fmt" | ||
"github.com/Ilyes512/boilr/pkg/boilr" | ||
"github.com/Ilyes512/boilr/pkg/cmd" | ||
"github.com/Ilyes512/boilr/pkg/util/exit" | ||
"github.com/Ilyes512/boilr/pkg/util/osutil" | ||
) | ||
|
||
func main() { | ||
if exists, err := osutil.DirExists(boilr.Configuration.TemplateDirPath); ! exists { | ||
if err := osutil.CreateDirs(boilr.Configuration.TemplateDirPath); err != nil { | ||
exit.Error(fmt.Errorf("tried to initialise your template directory, but it has failed: %s", err)) | ||
} | ||
} else if err != nil { | ||
exit.Error(fmt.Errorf("failed to init: %s", err)) | ||
} | ||
if exists, err := osutil.DirExists(boilr.Configuration.TemplateDirPath); !exists { | ||
if err := osutil.CreateDirs(boilr.Configuration.TemplateDirPath); err != nil { | ||
exit.Error(fmt.Errorf("tried to initialise your template directory, but it has failed: %s", err)) | ||
} | ||
} else if err != nil { | ||
exit.Error(fmt.Errorf("failed to init: %s", err)) | ||
} | ||
|
||
cmd.Run() | ||
cmd.Run() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters