Skip to content
Snippets Groups Projects
Commit 25bf3bfe authored by David McKay's avatar David McKay Committed by Tamer Tas
Browse files

*: init boilr automatically


Signed-off-by: default avatarDavid McKay <david@rawkode.com>
parent 6c765237
No related branches found
No related tags found
No related merge requests found
package main package main
import "github.com/tmrts/boilr/pkg/cmd" import (
"fmt"
"github.com/tmrts/boilr/pkg/boilr"
"github.com/tmrts/boilr/pkg/cmd"
"github.com/tmrts/boilr/pkg/util/exit"
"github.com/tmrts/boilr/pkg/util/osutil"
)
func main() { 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))
}
cmd.Run() cmd.Run()
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment