Commented commands package

This commit is contained in:
Ahsanul Haque
2014-12-12 00:05:02 +06:00
parent 9b04c27998
commit b11838da3f
2 changed files with 12 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ as you see fit.
Run: NewTheme,
}
//NewContent adds new content to a Hugo site.
func NewContent(cmd *cobra.Command, args []string) {
InitializeConfig()
@@ -103,6 +104,7 @@ func NewContent(cmd *cobra.Command, args []string) {
}
}
// NewSite creates a new hugo site and initializes a structured Hugo directory.
func NewSite(cmd *cobra.Command, args []string) {
if len(args) < 1 {
cmd.Usage()
@@ -132,6 +134,7 @@ func NewSite(cmd *cobra.Command, args []string) {
createConfig(createpath, configFormat)
}
//NewTheme creates a new Hugo theme.
func NewTheme(cmd *cobra.Command, args []string) {
InitializeConfig()