Documentation
¶
Overview ¶
Package caddycmd adapts the upstream Caddy process entry. The designated reusable surface, protected when released with its consumer contracts, is: Command, New, (*Command).Assembly and (*Command).Run. Run is process-scoped; Caddy owns os.Args, signals, output and os.Exit, exactly as in Community main.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command holds a distribution snapshot. Standard modules remain main imports.
func New ¶
func New(a distribution.Assembly) *Command
New constructs a fresh metadata snapshot without executing Caddy.
func (*Command) Assembly ¶
func (c *Command) Assembly() distribution.Assembly
Assembly returns a defensive copy of the explicitly linked metadata.
Click to show internal directories.
Click to hide internal directories.