Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWith ¶
func HandleWith(args []string, opts HandleOpts) error
HandleWith is the injectable entry used by doctests.
Types ¶
type HandleOpts ¶
type HandleOpts struct {
// StartSession nil → real cloudflare.StartSession adapter.
StartSession func(SessionStartOptions) (Session, error)
// WaitSignal nil → block until SIGINT/SIGTERM.
WaitSignal func() error
// Stdout/Stderr nil → os.Stdout / os.Stderr (help + user messages).
Stdout io.Writer
Stderr io.Writer
}
HandleOpts injects dependencies for tests and production defaults.
type SessionStartOptions ¶
SessionStartOptions is the subset of session config used by the CLI.
Click to show internal directories.
Click to hide internal directories.