ignore
1package cmd2
3import (4"fmt"5"github.com/neptunsk1y/ignore/internal"6"github.com/spf13/cobra"7)
8
9var listCommand = &cobra.Command{10Use: "list",11Short: "Available templates for .ignore files",12Run: func(cmd *cobra.Command, args []string) {13tr := internal.NewTemplateRegistry()14templates := tr.List()15for _, template := range templates {16fmt.Printf("%s ", template)17}18},19}
20
21func init() {22rootCmd.AddCommand(listCommand)23}
24