mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
23 lines
733 B
Go
23 lines
733 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var check_attrCmd = &cobra.Command{
|
|
Use: "check-attr",
|
|
Short: "Display gitattributes information",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_helper].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(check_attrCmd).Standalone()
|
|
check_attrCmd.Flags().BoolP("all", "a", false, "report all attributes set on file")
|
|
check_attrCmd.Flags().Bool("cached", false, "use .gitattributes only from the index")
|
|
check_attrCmd.Flags().Bool("stdin", false, "read file names from stdin")
|
|
check_attrCmd.Flags().BoolS("z", "z", false, "terminate input and output records by a NUL character")
|
|
rootCmd.AddCommand(check_attrCmd)
|
|
}
|