From 56bfa4be2090367ee0ffa529ef16e268754d9a1e Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Thu, 30 Dec 2021 06:43:21 -0500 Subject: [PATCH] DOCS: Replace deprecated functions (#1317) --- docs/migrate-v1-to-v2.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/migrate-v1-to-v2.md b/docs/migrate-v1-to-v2.md index 74f68f5614..0186746eb0 100644 --- a/docs/migrate-v1-to-v2.md +++ b/docs/migrate-v1-to-v2.md @@ -181,6 +181,10 @@ Compiler messages you might see: 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 Compile the code and work through any errors. Most should