Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClearCacheCmd = &cobra.Command{ Use: "clear-cache", Short: "Clear local cache", Run: func(cmd *cobra.Command, args []string) { cache.Shared().Clear() }, }
View Source
var CreateCmd = func() *cobra.Command { cmd := &cobra.Command{ Use: "create [directory]", Short: "Create a new site", Run: create, } return cmd }()
View Source
var ExportCmd = func() *cobra.Command { var outputPath string var minimize bool fn := func(cmd *cobra.Command, args []string) { export.Export(outputPath, minimize) } cmd := &cobra.Command{ Use: "export", Short: "Export sites", Run: fn, } cmd.Flags().StringVarP(&outputPath, "output", "o", "dist", "Output directory") cmd.Flags().BoolVarP(&minimize, "minimize", "m", false, "Wether minimize output files(css, html, js supported) or not") return cmd }()
View Source
var PreviewCmd = func() *cobra.Command { cmd := &cobra.Command{ Use: "preview", Short: "Preview in local environment", Run: preview, } cmd.Flags().IntVarP(&port, "port", "p", 5000, "Port") return cmd }()
View Source
var Revision = ""
View Source
var Version = ""
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.