MCPcopy Index your code
hub / github.com/coder/coder / SetClock

Method SetClock

cli/root.go:597–599  ·  view source on GitHub ↗

SetClock sets the clock used for time-dependent operations. Must be called before Command() to take effect.

(clk quartz.Clock)

Source from the content-addressed store, hash-verified

595// SetClock sets the clock used for time-dependent operations.
596// Must be called before Command() to take effect.
597func (r *RootCmd) SetClock(clk quartz.Clock) {
598 r.clock = clk
599}
600
601// ensureClientURL loads the client URL from the config file if it
602// wasn't provided via --url or CODER_URL.

Callers 1

NewWithClockFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected