posadka/cmd/version.go
Simon de Vlieger 0877745cda
sketch: commandline interface
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2024-12-28 10:30:02 +01:00

20 lines
368 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Hugo",
Long: `All software has versions. This is Hugo's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Hugo Static Site Generator v0.9 -- HEAD")
},
}