cmd_website

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Website dev server (-dev) and prod build tool

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-index",
			Usage: "build root index page",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "out",
					Aliases:  []string{"o"},
					Usage:    "output file path",
					Required: true,
				},
				&cli.StringFlag{
					Name:    "aws-profile",
					Aliases: []string{"p"},
					Usage:   "AWS profile to use for S3 access",
					Value:   "",
				},
				&cli.StringFlag{
					Name:  "s3-bucket",
					Usage: "S3 bucket name",
					Value: defaultS3Bucket,
				},
				&cli.StringFlag{
					Name:  "s3-prefix",
					Usage: "S3 prefix path",
					Value: defaultS3Prefix,
				},
			},
			Action: buildIndex,
		},
		{
			Name:      "build-month",
			Usage:     "build page for a specific month",
			ArgsUsage: "<month>",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:     "out",
					Aliases:  []string{"o"},
					Usage:    "output file path",
					Required: true,
				},
				&cli.StringFlag{
					Name:    "aws-profile",
					Aliases: []string{"p"},
					Usage:   "AWS profile to use for S3 access",
					Value:   "",
				},
				&cli.StringFlag{
					Name:  "s3-bucket",
					Usage: "S3 bucket name",
					Value: defaultS3Bucket,
				},
				&cli.StringFlag{
					Name:  "s3-prefix",
					Usage: "S3 prefix path",
					Value: defaultS3Prefix,
				},
			},
			Action: buildMonth,
		},
	},
}

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