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

Function Warn

cli/cliui/log.go:36–43  ·  view source on GitHub ↗

Warn writes a log to the writer provided.

(wtr io.Writer, header string, lines ...string)

Source from the content-addressed store, hash-verified

34
35// Warn writes a log to the writer provided.
36func Warn(wtr io.Writer, header string, lines ...string) {
37 _, _ = fmt.Fprint(wtr, cliMessage{
38 Style: DefaultStyles.Warn,
39 Prefix: "WARN: ",
40 Header: header,
41 Lines: lines,
42 }.String())
43}
44
45// Warn writes a formatted log to the writer provided.
46func Warnf(wtr io.Writer, fmtStr string, args ...interface{}) {

Callers 12

gitAskpassFunction · 0.92
stopWorkspaceFunction · 0.92
templatePullMethod · 0.92
PrintDeprecatedOptionsFunction · 0.92
templatePushMethod · 0.92
checkForLockfileMethod · 0.92
templateMessageMethod · 0.92
supportBundleMethod · 0.92
summarizeBundleFunction · 0.92
currentBinPathFunction · 0.92
WarnfFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected