synccmd

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: 19 Imported by: 0

Documentation

Overview

Package synccmd generates the hidden package described by the templ ADRs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(start string) (root, module string, err error)

Module finds the enclosing Go module root and module path.

func Run

func Run(ctx context.Context, start string) error

Run finds the enclosing Go module and refreshes its generated .templ package.

Types

type Component

type Component struct {
	Name      string `json:"name"`
	Source    string `json:"source"`
	Generated string `json:"generated"`
}

type Manifest

type Manifest struct {
	Version       int         `json:"version"`
	Package       string      `json:"package"`
	Module        string      `json:"module"`
	SourceRoot    string      `json:"sourceRoot"`
	GeneratedRoot string      `json:"generatedRoot"`
	Components    []Component `json:"components"`
}

Jump to

Keyboard shortcuts

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