Skip to content

Commit 0728800

Browse files
committed
Unexport checkHugo function
Signed-off-by: Matt Stratton <matt.stratton@gmail.com>
1 parent d28b80f commit 0728800

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

commands/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var configCmd = &cobra.Command{
2828
fmt.Println("Current Working Directory = ", pwd)
2929
fmt.Println("DevOpsDays web directory = ", webdir)
3030
color.Blue("Checking your config...")
31-
CheckHugo()
31+
checkHugo()
3232
checkGit()
3333
},
3434
}
@@ -38,10 +38,10 @@ func init() {
3838

3939
}
4040

41-
// CheckHugo tests whether or not a compatible version of the Hugo static site generator is instealled.
41+
// checkHugo tests whether or not a compatible version of the Hugo static site generator is instealled.
4242
//
4343
// Currently, the list of supported versions is hard-coded using the `supportedVersions` variable, but this should be moved elsewhere eventually.
44-
func CheckHugo() {
44+
func checkHugo() {
4545
supportedVersions := map[string]bool{"0.36.1": true, "0.37": true, "0.37.1": true}
4646
out, err := exec.Command("hugo", "version").Output()
4747
if err != nil {

0 commit comments

Comments
 (0)