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.
Click to show internal directories.
Click to hide internal directories.