var ( ErrTooManyOperations = errors.New("exactly one of --merge, --compare, --validate or --fieldset must be provided") ErrNeedTwoArgs = errors.New("--merge and --compare require both --lhs and --rhs") )
type Operation interface { Execute(io.Writer) error }
type Options struct {
// contains filtered or unexported fields
}
func (o *Options) AddFlags(fs *flag.FlagSet)
func (o *Options) OpenOutput() (io.WriteCloser, error)
func (o *Options) Resolve() (Operation, error)
resolve turns options in to an operation that can be executed.