mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Update completion command documentation
This commit is contained in:
parent
6939361670
commit
ba0071a73a
@ -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)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user