From 7b2e60968b20976f8acdf71f7e9b4c07bf853f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Krivokapi=C4=87?= Date: Mon, 14 Mar 2022 03:29:56 +0100 Subject: [PATCH] Small fixes to the v2 migration guide (#1340) - Add missing items to TOC - Remove items from TOC that don't exist in the document - Reorder the items in TOC to match the document --- docs/migrate-v1-to-v2.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/migrate-v1-to-v2.md b/docs/migrate-v1-to-v2.md index 15c509fa7e..c555468beb 100644 --- a/docs/migrate-v1-to-v2.md +++ b/docs/migrate-v1-to-v2.md @@ -15,15 +15,18 @@ consider sending a PR to help improve this guide. * [Flags before args](#flags-before-args) * [Import string changed](#import-string-changed) - * [Flag aliases are done differently.](#flag-aliases-are-done-differently) + * [Flag aliases are done differently](#flag-aliases-are-done-differently) * [EnvVar is now a list (EnvVars)](#envvar-is-now-a-list-envvars) + * [Actions returns errors](#actions-returns-errors) + * [cli.Flag changed](#cliflag-changed) * [Commands are now lists of pointers](#commands-are-now-lists-of-pointers) * [Lists of commands should be pointers](#lists-of-commands-should-be-pointers) - * [cli.Flag changed](#cliflag-changed) * [Appending Commands](#appending-commands) - * [Actions returns errors](#actions-returns-errors) + * [GlobalString, GlobalBool and its likes are deprecated](#globalstring-globalbool-and-its-likes-are-deprecated) + * [BoolTFlag and BoolT are deprecated](#booltflag-and-boolt-are-deprecated) + * [&cli.StringSlice{""} replaced with cli.NewStringSlice("")](#clistringslice-replaced-with-clinewstringslice) + * [Replace deprecated functions](#replace-deprecated-functions) * [Everything else](#everything-else) - * [Full API Example](#full-api-example) @@ -53,7 +56,7 @@ Check each file for this and make the change. Shell command to find them all: `fgrep -rl github.com/urfave/cli *` -# Flag aliases are done differently. +# Flag aliases are done differently Change `Name: "foo, f"` to `Name: "foo", Aliases: []string{"f"}`