mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
25 lines
893 B
Go
25 lines
893 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var check_ignoreCmd = &cobra.Command{
|
|
Use: "check-ignore",
|
|
Short: "Debug gitignore / exclude files",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_helper].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(check_ignoreCmd).Standalone()
|
|
check_ignoreCmd.Flags().Bool("no-index", false, "ignore index when checking")
|
|
check_ignoreCmd.Flags().BoolP("non-matching", "n", false, "show non-matching input paths")
|
|
check_ignoreCmd.Flags().BoolP("quiet", "q", false, "suppress progress reporting")
|
|
check_ignoreCmd.Flags().Bool("stdin", false, "read file names from stdin")
|
|
check_ignoreCmd.Flags().BoolP("verbose", "v", false, "be verbose")
|
|
check_ignoreCmd.Flags().BoolS("z", "z", false, "terminate input and output records by a NUL character")
|
|
rootCmd.AddCommand(check_ignoreCmd)
|
|
}
|