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

command

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package command supplies the application-owned `schedule test` operation. Parse before boot; Run borrows the application's configured scheduler and invokes one schedule immediately without starting the Scheduler kernel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Declaration

func Declaration(construct func(foundation.Resolver) (*schedule.Scheduler, error)) (cli.Declaration, error)

Declaration registers the schedule command in the ordinary CLI registry. The constructor resolves the configured scheduler after boot; parsing does no I/O.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command is a validated immutable operation.

func Parse

func Parse(args []string, help io.Writer) (Command, error)

Parse validates schedule test arguments without booting the application. Help is written to help and returns flag.ErrHelp.

func (Command) Run

func (c Command) Run(ctx context.Context, scheduler *schedule.Scheduler, output io.Writer) error

Run emits only the classification: never handler errors or payloads. A failed, cancelled or overlap-skipped invocation fails the command after reporting its outcome.

Jump to

Keyboard shortcuts

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