Skip to content

Commit

Permalink
completion: add completion enabling cmd example
Browse files Browse the repository at this point in the history
  • Loading branch information
psergee committed Feb 27, 2024
1 parent b8417b2 commit 083b59e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func NewCompletionCmd() *cobra.Command {
handleCmdErr(cmd, err)
},
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Example: `
# Enable auto-completion in current bash shell.
$ . <(tt completion bash)`,
}

return cmd
Expand Down

0 comments on commit 083b59e

Please sign in to comment.