Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored Apr 17, 2021
1 parent 35f1507 commit ba0d91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba0d91f

Please sign in to comment.