From ba0d91f9621f36d32aefce0d457e273001570c4b Mon Sep 17 00:00:00 2001 From: rsteube Date: Sat, 17 Apr 2021 23:40:02 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0345d6132..8e505c17e 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,14 @@ Command-line completion generator for [cobra] with support for: ## Usage -Calling `carapace.Gen(rootCmd).Root()` on the root command is sufficient to enable completion script generation using the [hidden command](https://rsteube.github.io/carapace/carapace/gen/hiddenSubcommand.html). +Calling `carapace.Gen` on the root command is sufficient to enable completion script generation using the [hidden command](https://rsteube.github.io/carapace/carapace/gen/hiddenSubcommand.html). ```go import ( "github.com/rsteube/carapace" ) -carapace.Gen(myCmd) +carapace.Gen(rootCmd) ``` ## Standalone Mode