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
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
// completionCmd represents the completion command
|
// completionCmd represents the completion command
|
||||||
var completionCmd = &cobra.Command{
|
var completionCmd = &cobra.Command{
|
||||||
Use: "completion",
|
Use: "completion",
|
||||||
Short: "Generates bash completion scripts",
|
Short: "Generate Bash completion scripts",
|
||||||
Long: `To load completion run
|
Example: ` Load completions in the current Bash shell:
|
||||||
|
. <(psu completion)
|
||||||
|
|
||||||
. <(psu completion)
|
Configure Bash shell to load completions for each session:
|
||||||
|
# ~/.bashrc or ~/.profile
|
||||||
To configure your bash shell to load completions for each session add to your bashrc
|
. <(psu completion)`,
|
||||||
|
|
||||||
# ~/.bashrc or ~/.profile
|
|
||||||
. <(psu completion)
|
|
||||||
`,
|
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
rootCmd.GenBashCompletion(os.Stdout)
|
rootCmd.GenBashCompletion(os.Stdout)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user