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

Function DeprecationWarning

cli/cliui/deprecation.go:10–21  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

8)
9
10func DeprecationWarning(message string) serpent.MiddlewareFunc {
11 return func(next serpent.HandlerFunc) serpent.HandlerFunc {
12 return func(i *serpent.Invocation) error {
13 _, _ = fmt.Fprintln(i.Stdout, "\n"+pretty.Sprint(DefaultStyles.Wrap,
14 pretty.Sprint(
15 DefaultStyles.Warn,
16 "DEPRECATION WARNING: This command will be removed in a future release."+"\n"+message+"\n"),
17 ))
18 return next(i)
19 }
20 }
21}

Callers 1

templateCreateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected