Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedGater ¶
type CachedGater struct{}
CachedGater is a Gater that always acts as if sudo is cached (no prompt, no refresh). For tests.
type Gater ¶
type Gater interface {
Gate(t *terminal.Terminal, confirmer terminal.Confirmer, reason string, assumeYes bool) error
}
Gater gates execution on sudo availability; callers can use Default or inject a stub in tests.
var Default Gater = &systemGater{}
Default is the Gater used by commands. Tests may replace it with a stub.
Click to show internal directories.
Click to hide internal directories.