Skip to content

Commit 7b2e609

Browse files
authored
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
1 parent 81cb783 commit 7b2e609

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/migrate-v1-to-v2.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ consider sending a PR to help improve this guide.
1515

1616
* [Flags before args](#flags-before-args)
1717
* [Import string changed](#import-string-changed)
18-
* [Flag aliases are done differently.](#flag-aliases-are-done-differently)
18+
* [Flag aliases are done differently](#flag-aliases-are-done-differently)
1919
* [EnvVar is now a list (EnvVars)](#envvar-is-now-a-list-envvars)
20+
* [Actions returns errors](#actions-returns-errors)
21+
* [cli.Flag changed](#cliflag-changed)
2022
* [Commands are now lists of pointers](#commands-are-now-lists-of-pointers)
2123
* [Lists of commands should be pointers](#lists-of-commands-should-be-pointers)
22-
* [cli.Flag changed](#cliflag-changed)
2324
* [Appending Commands](#appending-commands)
24-
* [Actions returns errors](#actions-returns-errors)
25+
* [GlobalString, GlobalBool and its likes are deprecated](#globalstring-globalbool-and-its-likes-are-deprecated)
26+
* [BoolTFlag and BoolT are deprecated](#booltflag-and-boolt-are-deprecated)
27+
* [&cli.StringSlice{""} replaced with cli.NewStringSlice("")](#clistringslice-replaced-with-clinewstringslice)
28+
* [Replace deprecated functions](#replace-deprecated-functions)
2529
* [Everything else](#everything-else)
26-
* [Full API Example](#full-api-example)
2730

2831
<!-- tocstop -->
2932

@@ -53,7 +56,7 @@ Check each file for this and make the change.
5356

5457
Shell command to find them all: `fgrep -rl github.com/urfave/cli *`
5558

56-
# Flag aliases are done differently.
59+
# Flag aliases are done differently
5760

5861
Change `Name: "foo, f"` to `Name: "foo", Aliases: []string{"f"}`
5962

0 commit comments

Comments
 (0)