lifecyclecmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package lifecyclecmd implements templ's sync-first development commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, start string, args []string, stdin io.Reader, stdout, stderr io.Writer) error

Build refreshes .templ and runs go build from the module root.

func Check

func Check(ctx context.Context, start string, args []string, stdin io.Reader, stdout, stderr io.Writer) error

Check refreshes .templ and runs go test against both the hidden package and the packages discovered by ./....

func Dev

func Dev(ctx context.Context, start, command string, stdout, stderr io.Writer) error

Dev refreshes .templ, watches .templ source files, and restarts command after each successful regeneration. An empty command runs generation-only mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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