mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-12 18:54:31 +00:00
19 lines
452 B
Go
19 lines
452 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var completion_bashCmd = &cobra.Command{
|
|
Use: "bash",
|
|
Short: "Generate the autocompletion script for bash",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(completion_bashCmd).Standalone()
|
|
completion_bashCmd.Flags().Bool("no-descriptions", false, "disable completion descriptions")
|
|
completionCmd.AddCommand(completion_bashCmd)
|
|
}
|