DOCS: Replace deprecated functions (#1317)

This commit is contained in:
Tom Limoncelli 2021-12-30 06:43:21 -05:00 committed by GitHub
parent e8d8173889
commit 56bfa4be20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,10 @@ Compiler messages you might see:
cannot use c (type *cli.Command) as type cli.Command in append cannot use c (type *cli.Command) as type cli.Command in append
``` ```
# Replace deprecated functions
`cli.NewExitError()` is deprecated. Use `cli.Exit()` instead. ([Staticcheck](https://staticcheck.io/) detects this automatically and recommends replacement code.)
# Everything else # Everything else
Compile the code and work through any errors. Most should Compile the code and work through any errors. Most should