Update completion command documentation

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-17 17:10:48 -04:00
parent 6939361670
commit ba0071a73a

View File

@ -1,23 +1,21 @@
package cmd
import (
"github.com/spf13/cobra"
"os"
"github.com/spf13/cobra"
)
// completionCmd represents the completion command
var completionCmd = &cobra.Command{
Use: "completion",
Short: "Generates bash completion scripts",
Long: `To load completion run
Short: "Generate Bash completion scripts",
Example: ` Load completions in the current Bash shell:
. <(psu completion)
. <(psu completion)
To configure your bash shell to load completions for each session add to your bashrc
# ~/.bashrc or ~/.profile
. <(psu completion)
`,
Configure Bash shell to load completions for each session:
# ~/.bashrc or ~/.profile
. <(psu completion)`,
Run: func(cmd *cobra.Command, args []string) {
rootCmd.GenBashCompletion(os.Stdout)
},