Skip to content

Commit

Permalink
fix: improve log output from init command
Browse files Browse the repository at this point in the history
  • Loading branch information
odsod committed Dec 27, 2021
1 parent 9a99e20 commit 15f955d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func main() {
}

func initMageTools() {
logger := mglog.Logger("initMageTools")
logger.Info("generating mage-tools...")
logger := mglog.Logger("init")
logger.Info("initializing mage-tools...")
defer func() {
if err := recover(); err != nil {
logger.Error(err.(error), err.(error).Error())
Expand Down Expand Up @@ -104,7 +104,8 @@ func initMageTools() {
if err := execCommandInDirectory(mageDir, "go", []string{"mod", "tidy"}...); err != nil {
panic(err)
}
logger.Info("Done...")
// TODO: Output some documentation, next steps after init, and useful links.
logger.Info("mage-tools initialized!")
}

func execCommandInDirectory(dir string, command string, args ...string) (err error) {
Expand Down

0 comments on commit 15f955d

Please sign in to comment.