Documentation
¶
Overview ¶
Package app holds shared CLI runtime concerns: the injected environment and instant/zone parsing used across commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInstant ¶
ParseInstant parses an instant in the given zone, trying each accepted layout.
Types ¶
type Env ¶
type Env struct {
Now Clock
Out io.Writer
Err io.Writer
Sleep Sleeper
Spawn Spawner
Zone *time.Location
}
Env is the injected runtime for every command: clock, output streams, and the wait/spawn effects. Tests supply fakes; main wires the real ones.
Click to show internal directories.
Click to hide internal directories.