cmd_website

package
v0.9.1-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Website dev server (-dev) and prod build/upload tool (-build and -upload)

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:  "website",
	Usage: "manage website tasks",

	Subcommands: []*cli.Command{
		{
			Name:  "dev",
			Usage: "run dev server",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:    "listen-addr",
					Aliases: []string{"l"},
					Usage:   "address to listen on for the dev server",
					Value:   ":8095",
				},
			},
			Action: runDevServer,
		},
		{
			Name:  "build",
			Usage: "build prod output",
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:    "upload",
					Aliases: []string{"u"},
					Usage:   "upload prod output to S3",
					Value:   false,
				},
				&cli.StringFlag{
					Name:    "out",
					Aliases: []string{"o"},
					Usage:   "where to save output files",
					Value:   "./build/website-html",
				},
			},
			Action: buildWebsite,
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL