Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 445 Bytes
package main
import (
"os"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.aporeto.io/remod/internal/remod"
)
var cmdGitSmudge = &cobra.Command{
Use: "gitsmudge",
Short: "Used by git attributes",
Hidden: true,
PreRunE: func(cmd *cobra.Command, args []string) error {
return viper.BindPFlags(cmd.Flags())
},
RunE: func(cmd *cobra.Command, args []string) error {
return remod.GitFilterSmudge(os.Stdin, os.Stdout)
},
}
You can’t perform that action at this time.