Help us shape the future of Go! Take the 2026 Go Developer Survey

run

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "Run php script"

Name is the command title.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cfg *config.Config, globals *flags.Options) *cli.Command

NewCommand creates a new run command.

func Run

func Run(ctx context.Context, args []string, config config.Config, globals *flags.Options) error

Run runs the command with options and CLI arguments.

It runs the script once, and again for every SIGHUP: a reload cancels the generation running so a served script runs its shutdown callbacks and stops listening, then re-reads the file. SIGINT and SIGTERM end it for good. All three arrive through ctx, which the runtime is given, because a script with nothing watching would ignore them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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